Click here to Skip to main content
13,550,050 members
Rate this:
Please Sign up or sign in to vote.
Hi iam using Encoding.UTF8.GetBytes(postData) to post my polish language content to my website database. But when i open the text in cpanel phpmyadmin i see different content (i say different because i see tonnes of garbage things).

You see on pc side i am able to read and write polish content using a RichTextBoxStreamType.UnicodePlainText. The text file while i open has same content as the file read.

But on server i don't know what changes. Isn't UTF8 a unicode format? Do i have to do something different to load and read polish content from online pages?

Posted 2-Nov-12 21:46pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

UTF is just one of Unicode UTFs, one of the most practical one's in most cases, and standard de-factor for Internet and other uses. All UTFs represent 100% of all Unicode code point and have one-to-one correspondence but not trivial one. In Windows, presentation of Unicode stings in memory is UTF-16LE. Of course, if your try to interpret one UTF assuming this is some other UTF, you will totally mess up things.

On UTFs, please see:[^],[^],[^],[^].

As to RTF, the presentation of Unicode in is it somewhat messed up. This is because RTF was created before Unicode was introduced. You can find further detain here:[^].

See also:[^].

From your question, is not clear how your character messed up, because you did not show your code and described the steps, but it's very likely. Same thing about the ways to untangle the problem: it is possible but depends on what was done. I think you can do it by yourself you if learn documentation and retreat your steps.

Despite of wide support of RTF on Microsoft platforms and libraries, you should understand that this is a proprietary format, and pretty much obsolete one. From the standpoint of Internet and WWW standards, using it… well, it cannot be considered as something serious.


This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web02-2016 | 2.8.180515.1 | Last Updated 3 Nov 2012
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100