Click here to Skip to main content
15,894,271 members
Home / Discussions / C#
   

C#

 
GeneralRe: formatting number Pin
dhol22-Feb-05 16:38
dhol22-Feb-05 16:38 
GeneralGetting the path of an open Word document Pin
Paladin5522-Feb-05 1:41
Paladin5522-Feb-05 1:41 
GeneralRe: Getting the path of an open Word document Pin
Heath Stewart22-Feb-05 12:30
protectorHeath Stewart22-Feb-05 12:30 
GeneralWeb method's parameter Pin
Ed Lee22-Feb-05 1:05
Ed Lee22-Feb-05 1:05 
GeneralRe: Web method's parameter Pin
J4amieC22-Feb-05 1:43
J4amieC22-Feb-05 1:43 
GeneralRe: Web method's parameter Pin
Anonymous22-Feb-05 13:55
Anonymous22-Feb-05 13:55 
GeneralRe: Web method's parameter Pin
J4amieC22-Feb-05 23:30
J4amieC22-Feb-05 23:30 
GeneralUTF8 Encoding - need help or explanation Pin
Radoslav Bielik21-Feb-05 23:56
Radoslav Bielik21-Feb-05 23:56 
Hi everyone,

I'm having a strange problem with unicode encoding in C# / Macromedia Flash, and I think I need a little explanation to make sure I understand WHERE is the problem. Smile | :)

So, in C#, we have Encoding.UTF8 and Encoding.Unicode. Encoding.UTF8 will encode ASCII characters into 8 bits, and all other characters as 16 bits (accented characters, etc). On the other hand, Encoding.Unicode is actually UTF16 and will encode all characters into 16 bits.

The problem: latin small letter s with caron - š - with character code 0x0161. This letter is encoded into 0x6101 when using Encoding.Unicode or 0x0161 when using Encoding.BigEndianUnicode. However, when using Encoding.UTF8, this letter is encoded into 0xC5A1.

In Macromedia Flash, strings are apparently encoded using UTF8, as the base ASCII characters are encoded into 8 bits, but the small letter s with caron - š - is encoded into 0x0161.

So now I don't know why is it different in UTF8 in C#?

Any clues will be highly appreciated...

Rado




Radoslav Bielik
http://www.neomyz.com/poll [^] - Get your own web poll

GeneralRe: UTF8 Encoding - need help or explanation Pin
Mike Dimmick22-Feb-05 2:21
Mike Dimmick22-Feb-05 2:21 
GeneralRe: UTF8 Encoding - need help or explanation Pin
Radoslav Bielik22-Feb-05 5:08
Radoslav Bielik22-Feb-05 5:08 
GeneralMouse position Pin
The underdog21-Feb-05 23:08
The underdog21-Feb-05 23:08 
GeneralRe: Mouse position Pin
Stefan Troschuetz22-Feb-05 1:45
Stefan Troschuetz22-Feb-05 1:45 
GeneralSending SMS Pin
innocent7321-Feb-05 22:50
innocent7321-Feb-05 22:50 
GeneralSpecialised task manager Pin
clatten21-Feb-05 21:39
clatten21-Feb-05 21:39 
GeneralRe: Specialised task manager Pin
Heath Stewart22-Feb-05 8:22
protectorHeath Stewart22-Feb-05 8:22 
GeneralRe: Specialised task manager Pin
clatten22-Feb-05 12:45
clatten22-Feb-05 12:45 
GeneralRe: Specialised task manager Pin
Heath Stewart22-Feb-05 13:04
protectorHeath Stewart22-Feb-05 13:04 
GeneralRe: Specialised task manager Pin
clatten23-Feb-05 20:55
clatten23-Feb-05 20:55 
GeneralAddress Book Pin
jstrulens21-Feb-05 21:08
jstrulens21-Feb-05 21:08 
GeneralRe: Address Book Pin
sharathgowda21-Feb-05 21:43
sharathgowda21-Feb-05 21:43 
GeneralRe: Address Book Pin
jstrulens21-Feb-05 21:58
jstrulens21-Feb-05 21:58 
QuestionHow to access outlook user accounts from asp.net or C# Pin
sivaji raju21-Feb-05 18:05
sivaji raju21-Feb-05 18:05 
AnswerRe: How to access outlook user accounts from asp.net or C# Pin
Rei Miyasaka22-Feb-05 17:05
Rei Miyasaka22-Feb-05 17:05 
Generalc# networking - data sent across network with tcpclient class using rjindael encryption truncates. Pin
Member 154579521-Feb-05 17:10
Member 154579521-Feb-05 17:10 
GeneralRe: c# networking - data sent across network with tcpclient class using rjindael encryption truncates. Pin
Rei Miyasaka22-Feb-05 17:08
Rei Miyasaka22-Feb-05 17:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.