Convert String to Bytes using a character set (and Vice versa)
Old fashioned guys use SQL Server varchar/text fields to store
strings of multiple languages that uses 1 byte encoding like
[Windows Character Table] :
Windows-1252 : English, French , Spanish, German,Italian,Spanish
(Western European characters)...
Windows-1251 : Russian,Bulgarian,Serbian,Ukrainian
Windows-1253 : Greek
Windows-1256 : Arabic
.....
Of course, 1 byte encoding field can contain English + only one
other language characters - unlike UTF-8) , just as a file encoded
in 1-byte encoding..
To know about Character sets, you should check :
The Absolute Minimum Every Software Developer Absolutely,
Positively Must Know About Unicode and Character Sets (No
Excuses!)
in that case : Asp pages codepage should remain as default =
1252
<% @ LANGUAGE=VBScript CODEPAGE=1252 %>
and setting the Response.Charset or HTML meta tag for charset
correctly will show things right.. and HTML page size is smaller
than the same one in UTF-8
of course [...]
Post Thanks More Tech Tips!!
