emscripten-core / emscripten-core/emscripten

Encoding conversion with iconv failed.

Open
#17,570 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
27.6k
Forks
3.6k
Avg merge
1d 1h
Merged PRs (30d)
105

Description

Please include the following in your bug report:

**Version of emscripten/emsdk:**
v3.1.0

I use "iconv_open("GB18030", "UTF-8"));"

`iconv_t iconv_open(const char *to, const char *from)
{
size_t f, t;
struct stateful_cd *scd;

if ((t = find_charmap(to))==-1
|| (f = find_charmap(from))==-1
|| (charmaps[t] >= 0330)) {
errno = EINVAL;
return (iconv_t)-1;
}`
Why do have this judgment: (charmaps[t] >= 0330), so I cant't convert to GB18030.
Is it not support?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.