Re: Why is this true: chr(254) = "th"

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance




"Jay B. Harlow [MVP - Outlook]" <Jay_Harlow_MVP@xxxxxxx> wrote in message news:OiD3cVscFHA.3048@xxxxxxxxxxxxxxxxxxxxxxx
Zorpie,
I suspect because under Windows Control Panel you have a region selected
where the ANSI code page maps Chr(254) to a character that maps to th. For
example in the US the code page is normally "Western European (Windows)",
which causes Chr(254) maps to the Latin Small Letter Thorn þ, If you have
Option Compare Text, "þ" = "th", while if you have Option Compare Binary "þ"
<> "th".


What does the following print?

   Debug.WriteLine(AscW(Chr(254)), "254")

For characters over 127, I normally use the Unicode value & ChrW rather then
Chr which uses your Windows ANSI code page value.


Hope this helps
Jay

"Zorpiedoman" <nowheremane@xxxxxxxxxxx> wrote in message
news:7E8F8D1A-50C8-46D3-BD87-E7801D831C8E@xxxxxxxxxxxxxxxx
| This evaluates to true, why?
|
| chr(254) = "th"
|
| -- | --Zorpie




I learn something new every day.

Mythran

.



Relevant Pages

  • Re: Why is this true: chr(254) = "th"
    ... I suspect because under Windows Control Panel you have a region selected ... where the ANSI code page maps Chrto a character that maps to th. ... Chr which uses your Windows ANSI code page value. ...
    (microsoft.public.dotnet.languages.vb)
  • Books Read - June 2011 (Spoiler Protected)
    ... Magic Below Stairs Caroline Stevermer Kate & Cecilia sidebar story 8 ... him) argues that Apollo maps to Thor, and Apollo's death maps to Thor's ... This book features as its male lead a supporting character from most of the ... Kitty gets a call from Anastasia (the vamp she befriended in Kitty's House ...
    (rec.arts.sf.written)
  • Re: Word count of minimum vocabulary
    ... In the same way the Chinese character for "five" maps ... Peter> whatever the word for 'sun' is in the language involved. ...
    (sci.lang)
  • Re: Why use the unicode version of the api?
    ... that there is an ANSI code page for each MBCS (incl. ... not all ANSI character sets ... > are guaranteed to support japanese/chinese DCBS - and nothing more. ...
    (microsoft.public.vb.winapi)
  • Re: Word count of minimum vocabulary
    ... In the same way the Chinese character for "five" maps ... a character has different readings in different ... Peter> whatever the word for 'sun' is in the language involved. ...
    (sci.lang)