×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




On Fri, 3 Nov 2006 08:11:01 +1100 
 Kevin Wright <Kevin.Wright@xxxxxxxxxxxx> wrote:
Also could the DBCS in question contain the apostrophe
character in one of
its bytes? 

Ding ding ding!  Bingo.  We have a winner!

I am doing a replace of characters in the string before
writing it.  I am doing (, ) and \ since these have to be
translated to \(, \) and \\ respectivley.

One of the DBCS characters' bytes is x'4D' which is the
same as the hex for the ( character.

Now comes the fun question that I hope there is an easy
answer to.

When scanning a string for a character, is there a way to
know if it has DBCS data in it?  And if not, how would this
problem be prevented?  I guess I had assumed (wrongly) that
DBCS data couldn't possibly be comprised of the same hex
values as another SBCS characters...

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.