Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Multilingual support in generated XML (RSS)

From: "BarakF" <frohlinger@-----.--->
To: NULL
Date: 11/5/2006 4:31:00 AM

> Function MapBetweenCharSets(rsIn, charsetIn, charsetOut)
>
>  Dim oStream : Set oStream =3D CreateObject("ADODB.Stream")
>
>  oStream.Type =3D 2 ' Text
>  oStream.CharSet =3D charsetIn
>  oStream.Open
>  oStream.WriteText rsIn
>  oStream.Position =3D 0
>  oStream.CharSet =3D charsetOut
>  MapBetweenCharSets =3D oStream.ReadText
>  oStream.close
> End Function
>
> s =3D  MapBetweenCharSets("=A3", "ISO-8859-1", "UTF-8")
>
> =A3 is a corruption of the British pound sign.  The result of the function
> above restores it.
>
> You usage would be:-
>
> Do Until rs.EOF
>     rs("yourfield").value =3D MapBetweenCharSets(rs("yourfield").value ,
> "ISO-8859-8", "UTF-8")
>     rs.update
> Loop
>
> Backup your DB first just in case ;)


Thanks, I'll try this conversion.

One more thing I want to make sure - the English characters look OK (in
DB, ASP, XML, etc.). Is it because the conversion using codepage 1255
and/or 65001 (or any other codepage), gives the same results - the
basic ASCII chars?
I want to make sure the only strings that should be converted are the
non-English characters, and not all the DB (big big difference...).
Thanks again,
Gabi.



transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent