-
Notifications
You must be signed in to change notification settings - Fork 66
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
ASCII translit not working #11
Comments
This was odd, I didn't see any immediate reason why this shouldn't work for you - since I'm passing the provided strings directly to the iconv_open without any manipulation. When I looked at the main function for the iconv program however, i saw they were doing a setlocale(LC_ALL, "") before opening an iconv descriptor and processing data. When I did a similar call with cgo in an init method, everything worked as expected. I'm not sure if that's appropriate for my library to do though. There doesn't already seem to be a way to do the same as setlocale without using cgo, which makes me worry its not a very nice thing to just do. I'll put the change on a branch until i know more |
Yes it works! :) |
I had the same problem in PHP. |
My Go code:
Result:
Expected result:
Native iconv command:
The text was updated successfully, but these errors were encountered: