George wrote:
On Mon, 2017-06-05 at 15:59 +0700, Peter & Kelly Passchier wrote:
On 05/06/2560 15:52, George wrote:
there's not a reliable mechanism in place to run a script in a locale
whose character encoding doesn't match that of the script
From my experience running such scripts is no problem, but correct
rendering it might depend on the client/editor.
It depends on the source and target encodings. For most pairs of source and
target encoding there is some case where reinterpreting a string from the
source encoding as a string in the target encoding (without proper conversion)
will result in an invalid string in the target encoding.
For instance, if a script were written in ISO-8859-1, many possible sequences
involving accented characters would actually be invalid in UTF-8.
---
Um... I think you are answering a case that is different than
what is stated (i.e. locale being same as used in script). So no
conversion should take place.
(if you have an issue w/that, talk to George. :-) )
-linda