develooper Front page | perl.perl5.porters | Postings from August 2017

Re: my_strerror() as API function

Thread Previous | Thread Next
Bo Lindbergh
August 15, 2017 20:07
Re: my_strerror() as API function
Message ID:
Quoth Karl Williamson:
> I concede that there are encodings that do use the 80-9F range, and these could be wrongly guessed.  The most likely one still in common use is CP 1252.  I did try once to create a string that made sense in both encodings, and I did succeed, but it was quite hard for me to do, and was very short; much shorter than an error message.

Actual, non-synthetic example:

The name "Muvrarášša" can be encoded in Windows-1252 as the octets
(hex) 4D 75 76 72 61 72 E1 9A 9A 61
which is also the correct UTF-8 encoding of the string "Muvrarᚚa",
where the next-to-last character is U+169A OGHAM LETTER PEITH.

/Bo Lindbergh

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About