login about faq

When I write "Österreich" via the newchild2-function from the Chilkat-XML I only get "Österreich". How can i solve that problem?

asked Aug 20 '15 at 08:48

Opteron68's gravatar image

Opteron68
3


When you see 2 garbage characters in place of a single German (8bit) char, it means the 2 bytes of the utf-8 representation of the German char are being interpreted as two individual 1-byte ANSI (iso-8859-1 / Windows-1252) represented chars.

The error can be in one of two places:

1) Your simply looking at the output in a program (editor, terminal, or whatever) that is interpreting the bytes as ANSI, when you really have utf-8, and the program SHOULD be interpreting the bytes as utf-8.

or

2) You passed the utf-8 byte representation to a Chilkat C++ method (I assume C++?) but the method is expecting "const char *" to be ANSI.

See:
http://www.cknotes.com/utf8-c-property-allows-for-utf-8-or-ansi-const-char/
http://www.cknotes.com/understanding-a-typical-8bit-character-problem-such-as-w-european-language-accented-chars/

link

answered Aug 20 '15 at 09:39

chilkat's gravatar image

chilkat ♦♦
11.8k316358420

Thank's for the fast answer. It's solved. The problem was the editor.

link

answered Aug 20 '15 at 09:52

Opteron68's gravatar image

Opteron68
3

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×5

Asked: Aug 20 '15 at 08:48

Seen: 455 times

Last updated: Aug 20 '15 at 09:52

powered by OSQA