Member Avatar

I'm developing a website which has support for the most talked languages in the world, but my problem is that in some machines instead of letters, rectangles are displayed. So far this problem has been seen mostly with chinese, japanese and korean languages. Somebody has an ideia on how to fix this issue?

Member Avatar
+0 forum 6
Member Avatar

I have an ASP Classic page with SHIFT_JIS charset. It has a meta tag under the <head> section like this: <meta http-equiv="Content-Type" content="text/html; charset=shift_jis"> My page has a text box (txtName) that should only allow 200 characters. I have a Javascript function that validates the character length, which is called on the onclick() event of my Submit button. if(document.frmPage.txtName.value.length > 200) { alert("You have exceeded the maximum length of 200."); return false; } The problem is, Javascript is not getting the correct length of Japanese character encoded in SHIFT_JIS. For example, the character **测** has a SHIFT_JIS length of 8 …

Member Avatar
+0 forum 1

The End.