Latest Charset Posts 

Read all about the topic Charset on jQuery Mastery - We give you the keys to unlock the true potential web UI design. Browse through articles written on this subject below, or check our tag cloud to see if you find anything interesting. As always, you can visit our home page to find the latest posts or view our RSS feed or get the current posts on this topic on our Charset RSS feed.

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!!

Tags: HTML, SQLServer, Asp, Charset, XML, Multi Language, CodePage, ADO, UTF8

Monday, February 9th, 2009 No comments