Abdelrazak Younes wrote:
Could someone explains me why what is the difference between these encodings: utf8, UTF8, utf8-plain, utf8x

In the Encoding ctor there is this code:
    } else if (i == "UTF-8") {
        // UTF8 can encode all UCS4 code points
        start_encodable_ = max_ucs4;
        complete_ = true;

which means that we can avoid the lengthy initialization is the encoding is UTF-8. So far, so good. Problem is that UTF-8 is not in the allowed encoding list...

So, shall I replace this test with:

(i == "utf8" || i == "UTF8" || i == "utf8-plain" || i == "utf8x")

???

Partial answer to my own question: No, 'i' represent the iconv code name, not the encodings. So UTF-8 is not to be compared with the encoding string.

The first question is still valid.

Abdel.

Reply via email to