1 May 2012 01:21
"u" versus "u"-with-a-hat character
Hi Everyone,
I need to be able to import/export from/to older versions, which use Char(252) and Char(251) for field and
record delimiters. I'm calling
USE CHARACTER SET("ISO-8859-1";1)
RECEIVE PACKET(InDoc;$packet;$packetSize)
$len:=Position($endOfRec;$packet)
But when I test for $len, it's finding a "u" without a hat at position 181, instead of a "u" with a hat (Char 252)
at position 88. In the debugger, it thinks that the two are equal to each other
(Substring($packet;88;1)=Substring($packet;181;1)) -> returns true
..and yet it does not see the earlier instance (at position 88). I've also tried "macintosh" and "MacRoman"
in the use character set command. If I append the asterisk onto the Position command, it finds nothing.
What's the work-around?
Thank you,
Don
**********************************************************************
4D v13 is available now - with more than 200 new features to make
your applications richer and faster
http://www.4d.com/products/new.html
4D Internet Users Group (4D iNUG)
FAQ: http://lists.4d.com/faqnug.html
Archive: http://lists.4d.com/archives.html
(Continue reading)
Of course you need to test the string length before else you'll be surprised ....
cheers
Matthias
**********************************************************************
RSS Feed