Asp: TextBox and VNI-Times, Vietnamese text problem

I need to allow the user to enter Vietnamese text into a textbox.

I have been instructed to use VNI-Times and provide a sample document with Vietnamese text.

When I paste text from the sample document into the text box, it is not encoded correctly. I tried to install the font (VNI-Times) on both my computer and the server, and change the encoding of my browser, to no avail. This issue is not localized only for the browser and also for notepad.

I've found one solution so far by putting a WYSIWYG editor on the page, but I'm hoping to use an asp: TextBox control.

Once the text is submitted by the user, it will appear as a server generated image and these images are not generated correctly either.

+1


source to share


2 answers


The Asian Language Pack (Windows Server 2003) must be installed on the server.

Once the server was migrated to Windows Server 2008, installing the VNI-Times font was sufficient to fix this problem.



This also allowed the images to be generated correctly.

+2


source


The problem is with copying text using the clipboard. When you copy text from a non-Unicode text file into a text field that assumes Unicode, there is no encoding translation and the byte string is not read correctly. You would use your keyboard to type Vietnamese text directly into the input controls (asp: TextBox), everything is fine.

The trick is to translate the text document to Unicode before you start copying and pasting. Make sure the sample Word document is converted first and the input controls display the text correctly.



http://vietunicode.sourceforge.net/howto/unicodeconversion.html

0


source







All Articles