Re: unicode textbox problem

Tech-Archive recommends: Speed Up your PC by fixing your registry



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
.



Relevant Pages

  • Re: mm/dd/yyyy format question
    ... I was not talking about how .Net or SQL Server stores date/time values ... I get the impression that you are talking about ISO 8601 in terms ... applications use the format for unambiguously representing date/time ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Querying on dates in dd/mm/yyyy hh/mm/ss format using Access2002 And SQL Server 7
    ... For parsing a string to a date/time, the 103 format doesn't limits the user ... > which is used as the row source for the results form). ... > other solutions assuming I have to use SQL Server 7? ... > I don't understand how I can use parameterized stored procedures to solve ...
    (microsoft.public.access.adp.sqlserver)
  • Re: Moving a VBA function to SQL server
    ... "String Functions " in Books Online. ... The SQL server database contains a table named 'WorkOrders'. ... This will produce a job header formatted like this: ... The format he specifies is stored in table 'Settings' - field 'JobHdrMask' ...
    (comp.databases.ms-access)
  • Re: unicode textbox problem
    ... I get the data in the above format from SQL server. ... If I move the same data into an asp:textbox, or an html input textbox, I ... But I need this to show the Chinese characters. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: mm/dd/yyyy format question
    ... "what is the logical way to configure server, sql server or program so ... it always deals with date as mm/dd/yyyy format". ... ISO 8601 specific to Asian countries? ... If the original question had been about what .Net classes/objects to ...
    (microsoft.public.dotnet.languages.vb)