• Answers
  • Web

In c# how can I response with unicode and not utf ...

in c# in fuction of web service how can I response with unicode and not utf_8


Share Send to a friend Watch Report
 
 

2 Posted Answers
Order by

 
45 helpful answers

What do you mean? UTF-8 is Unicode. Well, sort of...

 UTF-8 stands for Unicode Transformation Format-8 and it is one of the many possible ways to encode Unicode characters.

You see, Unicode is a standard for abstract representation of letters, numbers and symbols where every character has a unique "code point" that universally represents this particular character (for example, the English A is represented as U+0041). It doesn't say how this abstract code point number is stored or transfered.

Encoding, on the other hand, defines exactly how the characters are being physically stored. For example, ASCII encoding defines how to stored a set of characters in one byte each (and there are the 7bit/8bit versions). 

UTF-8 defines how to store these Unicode code points into a variable number of bytes (1-4 bytes) where the number of bytes depends on the particular Unicode character it encodes (to save space and be compatible with older encodings).

Other Unicode encodings include UTF-7, UTF-16, UTF-32 etc.

Now to answer your question, first you need to have an understanding what encoding is expected from you. There is no "Unicode" output (unless you mean outputting the code points literally like U+0041 U+0042 etc). Then you need to encode your output into that encoding.

In C#, a good start would be to look into System.Text.Encoding class.

 

Hope this helps. 

 

Posted 2007-05-01T12:58:58Z
Daniel was invited by Yedda to answer this question.

 

How can I get that particualr string contains of only alphabet, numerics or other characters?

Posted 2008-03-25T05:40:16Z

Sign in to participate

Got an answer for zivavi? Would you like to comment on the posted answers, or vote for the one which you think is the best?

Sign up for a free account, or sign in (if you're already a member).

Explore Related Questions

Other people asked questions on similar topics, check out the answers they received:


Q:

Programmatically detecting non-English Unicode text

I am looking for code (doesn't matter which programming language) that will allow me to infer if a specific piece of Unicode text ...
Submitted by FrankK   3 years ago.
  • viewed 1241 times
Last answer posted 11 months ago by azerty


Q:

Execute using C programing. a) Read the file A ...

Mention codings for this pgm using C a) Read the file A and output of this file is: aaaaaaaabbbbbbbbb…………..pppppppppppppp ...
Submitted by regfire   2 years ago.
  • viewed 814 times
Last answer posted 2 years ago by regfire


Q:

Hey, I am a newbie at C++ trying to create 8-puzzle program.

Hey, I am a newbie at C++ trying to create program to solve an 8-puzzle without using higher techniques such as heiristics and A ...
Submitted by coffeeaddict1213   9 months ago.
  • viewed 230 times



» More...

Explore Related Posts in Forums

C-C-C-C-Combo

C-C-C-C-Combo C-C-C-C-C-ComboC-C-C-C-C-C-C-Combo! This post... -C-C-C-C-Combo I STILL BELIEVE IN BLUEQuote: C-C-C-C-C-...

C-c-c-c-cold

... It all counts in your favor... NixieHi Gypsy, I would GLADLY trade the hot flashes for feeling c -c-c-cold... I am well past menopause, but I still get these horrid hot flashes... (and heat I do notice that after I lost 80 pounds, I now feel colder during the fall and winter months. I also think it has something...

C h o i c e s . . . C h o i c e s . . . ! ! ! . . . 10-12/04

Hi everybody! This is a thread to gather response before a confirmation to feature Natasha from Russia on 10th and 12th Apr... Apr(Fri and Sun) for 3 outdoor fashion shoot sessions of your choice, due to some pending assignments of hers. Do register... Great to shoot professional model but always crowded.Originally Posted by JayKay Great to shoot professional model but always...
» More...
Powered by
Feed - Subscribe to changes to this Q&A Blog
ADVERTISEMENT
  • Answers
  • Web
Copyright © 2006-2009, Yedda Inc. and respective copyright owners · CC License