Re: [w3c/webpayments] propose to add encoding attribute to data set (#181)

We've discussed this before. All strings in JavaScript are encoded in UTF-16. When resources are loaded over the network or from files the correct encoding must be specified. This allows the browser to convert from the encoded text into UTF-16. All browser APIs that operate on strings use UTF-16.

Needing to use a mechanism such as suggests that an incorrect charset is specified when data is read by the browser. If you don't indicate the correct encoding for data then it will never work correctly but properly tagged data will work automatically.

Here is how it works with the encode/decode steps shown:

You are receiving this because you commented.
Reply to this email directly or view it on GitHub:

Received on Friday, 23 September 2016 16:17:11 UTC