Re: [WebDNA] isolatin-1 to utf-8 conversion

This WebDNA talk-list message is from

2013


It keeps the original formatting.
numero = 110676
interpreted = N
texte = This is a multi-part message in MIME format. --------------040202080009010007040208 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hi Francisco we have (had) the same problem in french use the [ConvertChars]Any Text[/ConvertChars] you can also use it with a db in your global folder [ConvertChars db=^convert.db]Any Text[/ConvertChars] like that you creat your db for all your website. It works on 6, I haven't tested on 7 ;-) Lawrence > Francisco A. Hirsch > 11 septembre 2013 18:40 > 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=isotoutf] > [text]textoconvertir=[instring][/text] > [text]textoconvertir=[grep > search=�&replace=á][textoconvertir][/grep][/text] > [text]textoconvertir=[grep > search=�&replace=é][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--------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > Bug Reporting: support@webdna.us --------------040202080009010007040208 Content-Type: multipart/related; boundary="------------050402030205040804090804" --------------050402030205040804090804 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit Hi Francisco

we have (had) the same problem in french
use the [ConvertChars]Any Text[/ConvertChars]
you can also use it with a db in your global folder
[ConvertChars db=^convert.db]Any Text[/ConvertChars] like that you creat your db for all your website.
It works on 6, I haven't tested on 7 ;-)

Lawrence


11 septembre 2013 18:40
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=isotoutf]
 [text]textoconvertir=[instring][/text]
[text]textoconvertir=[grep search=�&replace=á][textoconvertir][/grep][/text]
 [text]textoconvertir=[grep search=�&replace=é][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---------------------------------------------------------
This message is sent to you because you are subscribed to
the mailing list <talk@webdna.us>.
To unsubscribe, E-mail to: <talk-leave@webdna.us>
archives: http://mail.webdna.us/list/talk@webdna.us
Bug Reporting: support@webdna.us
--------------050402030205040804090804 Content-Type: image/jpeg; x-apple-mail-type=stationery; name="compose-unknown-contact.jpg" Content-Transfer-Encoding: base64 Content-ID: Content-Disposition: inline; filename="compose-unknown-contact.jpg" /9j/4AAQSkZJRgABAQEARwBHAAD/2wBDAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEC AQEBAQEBAgICAgICAgICAgICAgICAgICAgICAgICAgICAgL/2wBDAQEBAQEBAQICAgICAgIC AgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgL/wAAR CAAZABkDAREAAhEBAxEB/8QAGAAAAwEBAAAAAAAAAAAAAAAABgcICQr/xAA0EAABAwMCAgUK BwAAAAAAAAACAQMEBQYRABITIQcUMUF2CBUXIjI2N0JRtVRWkZOV0dL/xAAYAQEAAwEAAAAA AAAAAAAAAAADAAEEAv/EACQRAAICAAQGAwAAAAAAAAAAAAABAhEDMrHREyExM0FxgfDx/9oA DAMBAAIRAxEAPwDuEt+gW/ULet6oVC3rfqNQqFv0OfPn1GhUqfOmzZtKZlS5UqZMaNwzNwiJ VIl7eXLCaZIGwBl3TY8epPx2+jy2ZNPjvkwc9uhW8j7nCPhvOsQliYIeS7cvCpp8o50qwrC4 v3lsNSDbdmTEhvs2tahxpfV3WnmbbozJEw/gwdadbYExVRXKEKoSdvJcaOSqxE7/AAiX0gXx +a69/JSf9alIlste0VzaNpeFrcT9KKymotyiaZ0KRCnzacoE7Kjzn4gi2KqUh3jqDHDHv4mR UfruTWlMzlVUKIVNp9GguEJnAh0+IZjyAiisgyRDnu5azS8miKqjOTVkKqS/psG37fo1Fbab eg25b8eZPeFJBBJSjMG5HjMeyihnaauZwe4OGiju13GAcpOwBeN+U8/IkGbsiS8b7ryogmbz hbyc9REROfZhERO5ETShjPtvpGqTUyLErytS4siSwx5x2tRH4hPOI0DkjZtaJtFxuVEbIUUi yeNujlBUJGbJN6nM/Cyf2Hf60YgjvKA+NPSP4gT7axpcPtr51YWJnYn9dnAQWl722p4ot37y zqnlfp6FrqbwawG8/9k= --------------050402030205040804090804-- --------------040202080009010007040208-- Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] isolatin-1 to utf-8 conversion (Lawrence Banahan 2013)
  2. Re: [WebDNA] isolatin-1 to utf-8 conversion ("Francisco A. Hirsch" 2013)
  3. Re: [WebDNA] isolatin-1 to utf-8 conversion (Lawrence Banahan 2013)
  4. Re: [WebDNA] isolatin-1 to utf-8 conversion ("Francisco A. Hirsch" 2013)
  5. Re: [WebDNA] isolatin-1 to utf-8 conversion (Lawrence Banahan 2013)
  6. Re: [WebDNA] isolatin-1 to utf-8 conversion (Tom Duke 2013)
  7. Re: [WebDNA] isolatin-1 to utf-8 conversion (Lawrence Banahan 2013)
  8. [WebDNA] isolatin-1 to utf-8 conversion ("Francisco A. Hirsch" 2013)
This is a multi-part message in MIME format. --------------040202080009010007040208 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hi Francisco we have (had) the same problem in french use the [convertchars]Any Text[/ConvertChars] you can also use it with a db in your global folder [ConvertChars db=^convert.db]Any Text[/ConvertChars] like that you creat your db for all your website. It works on 6, I haven't tested on 7 ;-) Lawrence > Francisco A. Hirsch > 11 septembre 2013 18:40 > 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=isotoutf] > [text]textoconvertir=[instring][/text] > [text]textoconvertir=[grep > search=�&replace=á][textoconvertir][/grep][/text] > [text]textoconvertir=[grep > search=�&replace=é][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--------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > Bug Reporting: support@webdna.us --------------040202080009010007040208 Content-Type: multipart/related; boundary="------------050402030205040804090804" --------------050402030205040804090804 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit Hi Francisco

we have (had) the same problem in french
use the [convertchars]Any Text[/ConvertChars]
you can also use it with a db in your global folder
[ConvertChars db=^convert.db]Any Text[/ConvertChars] like that you creat your db for all your website.
It works on 6, I haven't tested on 7 ;-)

Lawrence


11 septembre 2013 18:40
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=isotoutf]
 [text]textoconvertir=[instring][/text]
[text]textoconvertir=[grep search=�&replace=á][textoconvertir][/grep][/text]
 [text]textoconvertir=[grep search=�&replace=é][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---------------------------------------------------------
This message is sent to you because you are subscribed to
the mailing list <talk@webdna.us>.
To unsubscribe, E-mail to: <talk-leave@webdna.us>
archives: http://mail.webdna.us/list/talk@webdna.us
Bug Reporting: support@webdna.us
--------------050402030205040804090804 Content-Type: image/jpeg; x-apple-mail-type=stationery; name="compose-unknown-contact.jpg" Content-Transfer-Encoding: base64 Content-ID: Content-Disposition: inline; filename="compose-unknown-contact.jpg" /9j/4AAQSkZJRgABAQEARwBHAAD/2wBDAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEC AQEBAQEBAgICAgICAgICAgICAgICAgICAgICAgICAgICAgL/2wBDAQEBAQEBAQICAgICAgIC AgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgL/wAAR CAAZABkDAREAAhEBAxEB/8QAGAAAAwEBAAAAAAAAAAAAAAAABgcICQr/xAA0EAABAwMCAgUK BwAAAAAAAAACAQMEBQYRABITIQcUMUF2CBUXIjI2N0JRtVRWkZOV0dL/xAAYAQEAAwEAAAAA AAAAAAAAAAADAAEEAv/EACQRAAICAAQGAwAAAAAAAAAAAAABAhEDMrHREyExM0FxgfDx/9oA DAMBAAIRAxEAPwDuEt+gW/ULet6oVC3rfqNQqFv0OfPn1GhUqfOmzZtKZlS5UqZMaNwzNwiJ VIl7eXLCaZIGwBl3TY8epPx2+jy2ZNPjvkwc9uhW8j7nCPhvOsQliYIeS7cvCpp8o50qwrC4 v3lsNSDbdmTEhvs2tahxpfV3WnmbbozJEw/gwdadbYExVRXKEKoSdvJcaOSqxE7/AAiX0gXx +a69/JSf9alIlste0VzaNpeFrcT9KKymotyiaZ0KRCnzacoE7Kjzn4gi2KqUh3jqDHDHv4mR UfruTWlMzlVUKIVNp9GguEJnAh0+IZjyAiisgyRDnu5azS8miKqjOTVkKqS/psG37fo1Fbab eg25b8eZPeFJBBJSjMG5HjMeyihnaauZwe4OGiju13GAcpOwBeN+U8/IkGbsiS8b7ryogmbz hbyc9REROfZhERO5ETShjPtvpGqTUyLErytS4siSwx5x2tRH4hPOI0DkjZtaJtFxuVEbIUUi yeNujlBUJGbJN6nM/Cyf2Hf60YgjvKA+NPSP4gT7axpcPtr51YWJnYn9dnAQWl722p4ot37y zqnlfp6FrqbwawG8/9k= --------------050402030205040804090804-- --------------040202080009010007040208-- Lawrence Banahan

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:

wget in [shell] (2007) TPC Connect (1999) WebCatalog for Postcards ? (1997) Document Contains No Data! (1997) Online reference (1997) trouble updating records in database (1998) Seeking WebCat Bulletin Board (1999) 2 questions (2000) User/Pass dialogue issue [AOL?] (2002) SiteEdit NewFile.html ? (1997) Re:WebCat for mass emailings (1997) Running _every_ page through WebCat-error.html (1997) Forcing a NEWCART (1997) UPDATE PROBLEM (1997) WebDNA vs PHP (2003) Review comparison by PC Magazine: Open for On-lineBusiness (1997) math problems (2000) Here's how to kill a Butler Database. (1997) Multiple Pulldowns (1997) Bug Report, maybe (1997)