Posted by Robert G Laurin on June 26, 2013 at 10:10:04:
In Reply to: XAP/Ajax question...> posted by Tom Fulton on June 26, 2013 at 09:20:55:
I've been plagued with problems on accent characters.
Working in a mainly francophone province, I encounter these accents daily. It was bad enough to deal with OEM characters (Win 95/98) translation to ANSI (Win XP/7).
For XAP/XML, I use a routine that convert all special characters to an escape sequence and < > & ' " #
Where the XML data has { for special characters. That is:
IF CAR$ > '@7F@' OR POS(CAR$,"<>&'@22@#") > 0 ! That is GT LT AMP Quote Double-Quote Sharp
LET CAR$ = '' + STRIP(STR(ASC(CAR$))) + ';'
ENDIF
Yes! It is a pain
Wish we could have a function to encode special characters and the HTML entities
Each file can be a maximum of 1MB in length Uploaded files will be purged from the server on a regular basis.