|
ExcelApplication Object Reference UnicodeToAnsi MethodSyntax:[VBScript] Function UnicodeToAnsi(inUnicode As String, CodePage As Long) As String Description:To get a non-Latin alphabet string from a spreadsheet, and display the string correctly in the browser, from a server running a language different from the language of the client's HTML page, you must:
For a complete list of charset and code page values see,
Character Set Recognition Example:Cell E7 contains a Hebrew string represented in Unicode. The following lines convert the string from Unicode to Ansi, and display the converted string in the browser. The Hebrew characters will be displayed correctly. The example uses a specific language code page and charset; to correctly display strings in any language, use code page 65001 and charset UTF-8.
Copyright © 2005, SoftArtisans, Inc. |