Displaying Chinese in a TextBox
Can anyone help me resolve a little problem.
I'm trying to open a txt file in a TextBox. This works fine with a text file that contains English characters. However when I try to open a file containing Chinese characters nothing gets displayed (I've put in an error message that tells me its 'Out of Memory', which isn't true as the file contains two characters). I've tried using a normal TextBox and also a RichTextBox but still the same thing happens.
My system locale is set to Chinese so any other application displays Chinese characters correctly, it's just these TextBoxes that don't.
I'm guessing theres a problem with the encoding somewhere but it's beyond me.
Please help.
Thanks.
|