I would assume what is happening is this: The textbox, when used on a web-browser with a chinese locale, uses the default system font (which would support Chinese characters).
The label has probably been set (maybe via CSS?) to use a standard western font such as Tahoma, Verdana, Arial etc, which afaik do not support Chinese characters. On Thu, Apr 8, 2010 at 5:46 PM, Stickytroll <[email protected]> wrote: > Hi all, > > I hope someone can help me - this is driving me crazy and I've been > searching for answers all day... > > I have a web page written in C# ASP.NET, with a multiline text box and > a label. The user types text into the text box, and there are 2 > buttons so they can either save the text to a SQL database on the web > server, or preview the text in a label. > > The text box allows e.g. Chinese characters no problem, and they are > saved and loaded from the SQL database fine, so there's nothing wrong > with how they are being stored, saved, retrieved, etc. > > However when the preview button is clicked, the label only shows a > string of square symbols. Obviously it's having trouble displaying the > characters. I'm not setting any special fonts for each of the > controls, so they should both be using default fonts. > > I'm copying the text from the textbox to the label like this: > > ConstitutionLabel.Text = ConstitutionTextBox.Text; > > so it should be straightforward. Can anyone suggest anything? > > Any ideas appreciated! > > > > -- > To unsubscribe, reply using "remove me" as the subject. >
