[WebDNA] isolatin-1 to utf-8 conversion
This WebDNA talk-list message is from 2013
It keeps the original formatting.
numero = 110675
interpreted = N
texte = I have the following proble:I have to read data from WebDNA dbs whose data is in isolatin1 ( i'ts =mainly Spanish, so it's full of non-ascii characters.)I want to show it as UTF-8.I tried doing a function to replace the special characters.[function name=3Disotoutf][text]textoconvertir=3D[instring][/text][text]textoconvertir=3D[grep =search=3D=EF=BF=BD&replace=3D=C3=A1][textoconvertir][/grep][/text][text]textoconvertir=3D[grep =search=3D=EF=BF=BD&replace=3D=C3=A9][textoconvertir][/grep][/text]etc, etc[return][textoconvertir][/return][/function]The function does not do the replacement because I, "obviously", have =not written correctly the iso characters to convert.How can I do this?Regards to all,Francisco=
Associated Messages, from the most recent to the oldest:
I have the following proble:I have to read data from WebDNA dbs whose data is in isolatin1 ( i'ts =mainly Spanish, so it's full of non-ascii characters.)I want to show it as UTF-8.I tried doing a function to replace the special characters.[function name=3Disotoutf]
[text]textoconvertir=3D[instring][/text]
[text]textoconvertir=3D[grep =search=3D=EF=BF=BD&replace=3D=C3=A1][textoconvertir][/grep][/text]
[text]textoconvertir=3D[grep =search=3D=EF=BF=BD&replace=3D=C3=A9][textoconvertir][/grep][/text]etc, etc
[return][textoconvertir][/return][/function]The function does not do the replacement because I, "obviously", have =not written correctly the iso characters to convert.How can I do this?Regards to all,Francisco=
"Francisco A. Hirsch"
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
[OT] DOD again (2003)
hideif/showif causes error if wrapped around searches (2003)
Generating Options for a Form. (1997)
listing certain items in the orderfile (2002)
WebCat2.0 [format thousands .0f] no go (1997)
all records returned. (1997)
WebCatalog/Mac 2.1b2 New Features (1997)
[SearchString] usage (1997)
help! problem using [referrer] still in 2.01 (1997)
[WebDNA] CMS in WEBDNA (2009)
Looking for a host (1997)
Problem with webcat install (1998)
Public beta 2 for WebCatalog 4.0 is now available. (2000)
Press Release hit the NewsWire!!! (1997)
[WebDNA] Resolve IP to Domain (2018)
WCS Newbie question (1997)
Credit Card Checksum (1997)
Triggers (1999)
Uh...can someone help me out with the b10? (1997)
problems with 2 tags (1997)