Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

big5 to utf-8 conversion erases ASCII characters (a-zA-Z0-9, etc) #9

Open
GoogleCodeExporter opened this issue Sep 2, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. import go-charset with both charset and charset/data package
2. perform conversion on a string containing ASCII characters
3. check the result

What is the expected output? 
The ASCII characters should be there with the converted big5 characters.

What do you see instead?
The ASCII characters disappeared.

What version of the product are you using? On what operating system?
go1.1.1 on Windows XP without iconv


Please provide any additional information below.

Example (runnable example attached):
r, err := charset.NewReader("big5", strings.NewReader("123 English 
\xb4\xfa\xb8\xd5"))
if err != nil {
    log.Fatal(err)
}
result, err := ioutil.ReadAll(r)
if err != nil {
    log.Fatal(err)
}
fmt.Printf("%s\n", result)

Original issue reported on code.google.com by Benny.T...@gmail.com on 2 Jul 2013 at 11:02

Attachments:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant