Re: unicode textbox problem
- From: Jon Skeet [C# MVP] <skeet@xxxxxxxxx>
- Date: Fri, 26 Sep 2008 22:44:07 +0100
tparks69 <tparks69@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
I have the font specified as: style="font-family:Arial Unicode MS" but that
doesn't help. Also I found some code that works but the source data is in a
slightly different format than how I am getting it from SQL server:
So this works:
char[] chinese = {'\u6B22','\u8FCE','\u4F7F','\u7528','\u0020'};
txtHeadline.Text = new string(chinese);
text shows up as chinese characters in the textbox... but my data from SQL
server is in a different format... like this...
? ? etc... what is this format, how can I convert it to '\u6B22'
etc...???
Okay, so if the problem is getting the data in the first place, read
this:
http://pobox.com/~skeet/csharp/debuggingunicode.html
--
Jon Skeet - <skeet@xxxxxxxxx>
Web site: http://www.pobox.com/~skeet
Blog: http://www.msmvps.com/jon.skeet
C# in Depth: http://csharpindepth.com
.
- Follow-Ups:
- Re: unicode textbox problem
- From: tparks69
- Re: unicode textbox problem
- References:
- unicode textbox problem
- From: tparks69
- Re: unicode textbox problem
- From: Jon Skeet [C# MVP]
- Re: unicode textbox problem
- From: tparks69
- unicode textbox problem
- Prev by Date: winforms design suggestions / help
- Next by Date: Re: winforms design suggestions / help
- Previous by thread: Re: unicode textbox problem
- Next by thread: Re: unicode textbox problem
- Index(es):
Relevant Pages
|