473,399 Members | 2,159 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Interesting Gotcha

I just discovered the following:

chr(140) = "OE"
chr(156) = "OE"
chr(198) = "AE"
chr(222) = "TH"
chr(223) = "SS"
chr(230) = "AE"
chr(254) = "TH"

-zorpy
Nov 21 '05 #1
3 981
I don't know what you are doing but those are all false to me..

Console.WriteLine(Chr(140) = "OE")

Console.WriteLine(Chr(156) = "OE")

Console.WriteLine(Chr(198) = "AE")

Console.WriteLine(Chr(222) = "TH")

Console.WriteLine(Chr(223) = "SS")

Console.WriteLine(Chr(230) = "AE")

Console.WriteLine(Chr(254) = "TH")

all returns false not true so they are NOT equal
Nov 21 '05 #2
Zopry,
See my previous message.

This confirms my suspicion, that you are using Option Compare Text, as I
understand that:

AE is a common replacement for Æ - chr(198)
ae is a common replacement for æ - chr(230)
SS is a common replacement for ß - chr(223) (actually I understand that
SS is an upper case ß)
OE is a common replacement for O - chr(140)
oe is a common replacement for o - chr(156)

I would expect that TH is a common replacement for Þ, however I have not
seen or used Þ, then again I see more German then Icelandic.

By "common replacement" I mean in ASCII or US typewriters that only have
characters A to Z & a to z...

Hope this helps
Jay
"Zorpiedoman" <no*********@beatles.com> wrote in message
news:E8**********************************@microsof t.com...
|I just discovered the following:
|
| chr(140) = "OE"
| chr(156) = "OE"
| chr(198) = "AE"
| chr(222) = "TH"
| chr(223) = "SS"
| chr(230) = "AE"
| chr(254) = "TH"
|
| -zorpy
Nov 21 '05 #3
Zorpiedoman,

Just as addition.

All previous answers are in my idea confirming the 1252 code page, so when
you have another one the answers can be different.

http://www.geocities.com/Athens/Acad.../fontset.htm#b

I hope this helps,

Cor
Nov 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Frank Bechmann | last post by:
Eventually most of you will not learn much from this because it's just another event in the 'default argument value gotcha' series, but because it cost me some hours yesterday to spot this 'error'...
8
by: Bruno R. Dias | last post by:
Perhaps it would be interesting to program a virtual machine simulating an ancient computer (such as the pdp-7). Then, it would be rather interesting to code for it (porting gcc to it maybe?). I...
15
by: Nick Coghlan | last post by:
Thought some folks here might find this one interesting. No great revelations, just a fairly sensible piece on writing readable code :) The whole article:...
12
by: ljh | last post by:
Has anyone else noticed that the FileSystemWatcher raises the changed event twice when a file is changed? Do you have any idea why this is the case?
0
by: Yin99 | last post by:
Do the TableAdapters have any limitations, gotcha's, or anything that may bite ya in the rear down the road? I'm looking for lessons learned and/or past experience. I'm starting a new...
3
by: vbgunz | last post by:
forgive me for my bumbling confusion. I am learning javascript and got caught up in a gotcha. this may be due to Mozillas spidermonkey or most likely to my n00b mindset on how encodeURI* and...
16
by: Hendrik van Rooyen | last post by:
I thought I would share this nasty little gotcha with the group. Consider the following code fragment: <start> print 'starting kbd thread' keyboard_thread = thread.start_new_thread(kbd_driver...
14
by: Hendrik van Rooyen | last post by:
Hi, I am surprised that it took me so long to bloody my nose on this one. It must be well known - and I would like to find out how well known. So here is a CLOSED BOOK multiple choice...
0
by: Just_a_fan | last post by:
I am so happy about this I had to tell someone and since no one at the house even knows how to spell VB, I just had to make a short post. I finally got my little program to correctly do a second...
5
by: cnb | last post by:
this recursive definition of sum thrumped me, is this some sort of gotcha or am I just braindead today? and yes i know this is easy a a for x in xs acc += x or just using the builtin. def...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.