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:

sudoers on RH (2003) WebCatalog and WebTen (1997) ODBC Help (2004) Associative lookup style? + bit more (1997) [WebDNA] total (2010) CopyFile not working? (2000) [WebDNA] Processor usage off the charts (2008) WebCat2 several catalogs? (1997) problems with 2 tags shakur (1997) Catalogs and W* (1996) WC --> printer (1998) [delete] problem (1997) Adding insurance to an order, round 2 (2003) Frames and WebCat (1997) [Summary] re: Emailer setup (1997) Credit card arrangement (2005) [SearchString] problem with [search] context (1997) sorting by date (1999) Sense/Disallow HTML tags during $Append (1997) Re:Subject: Mail Server Software (1998)