Tell that to the Windows computer I used last week that insisted Euro should be stored as 0x80... :-)
"windows-1252" is also a valid character encoding for Pike source code, so you can use that if it helps. ;-)
Anyway, this is off-topic but I'm curious to find out how diff would recognize which charset the file is using. If I have another string with the currency sign (0xA4 in ISO-8859-1) I'm quite certain it would report it as identical to Euro (0xA4 in ISO-8859-15). But for the sake of this argument I'll say "\x2122" (trademark) instead. (Gotcha! :-)
If you change the encoding of the file from ISO-8859-1 to ISO-8859-15, diff will report a change on the #charset line. Your phrasing "another string" puzzles me a bit though. Are you talking about the diff function in Pike? It works on wide strings.
I'm not sure what the "gotcha" was concerning trademark, could you expand on that perhaps?
/ Marcus Comstedt (ACROSS) (Hail Ilpalazzo!)
Previous text:
2003-09-23 00:38: Subject: Re: wish: string with other quoting then \
Tell that to the Windows computer I used last week that insisted Euro should be stored as 0x80... :-)
Anyway, this is off-topic but I'm curious to find out how diff would recognize which charset the file is using. If I have another string with the currency sign (0xA4 in ISO-8859-1) I'm quite certain it would report it as identical to Euro (0xA4 in ISO-8859-15). But for the sake of this argument I'll say "\x2122" (trademark) instead. (Gotcha! :-)
/ Jonas Walldén