-
Notifications
You must be signed in to change notification settings - Fork 156
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
Error: Failed to convert C:\Users\李明(Some wide characters) to UTF-16! #93
Comments
Just don't use folders and files name other than ascii. Not just hactool, every other programs can cause issue. Using user name as CJK on windows messes up everything. |
It is because the program assumes that the paths read from %HOME%, %USERPROFILE% etc. are in UTF-8, while normally they are in your system locale. I changed the code to the following in filepath.c, not sure if it doesn't introduce any other bugs:
|
|
@Thesola10 hactool isn't really maintained or maintainable any more fyi. Its replacement is currently a work in progress, and unicode should work fine with it. |
Cool! Do you have a rough timeframe as to when that tool might be ready, so I know if I should keep working on my wrapper or wait for the new tool? I'm trying to automate my translation patcher so I'll probably need to make a Python wrapper anyway. |
I don't like to provide ETAs, as a matter of course. Source for the wip stuff is available at Atmosphere-NX/hac2l though. |
@SciresM this comment does nothing related to this issue, but as I start a project to get some data about game from nintendo cdn, from my research I seen your name on many pages, and I wish to ask you some question to get more information that can be helpfull for my project and help me to win some time), and I haven't some ohter place where I have an account to contact you. feel free to choose the wayto contact you if you are agree to discuss with me, just delete this message else. thread example where your answers looks use full: https://gbatemp.net/threads/hacdn-download-game-nca-files-directly-from-nintendos-cdn.503847/page-5#post-7973812 |
I'm from China. In my Windows 10 Simplified Chinese, I found a problem that if you log in Windows with a user name in Chinese, the software will show an error:
Failed to convert C:\Users\李明 to UTF-16!
If you log in with an English username, everything's fine.
In Windows, character encoding is ANSI, like GB2312. In Linux, it's UTF8. Is there a problem here?
I would appreciate it if you could fix this. Thanks.
(My operating environment: hactool 1.33, Windows 10 Simplified Chinese Version 2004 x64)
The text was updated successfully, but these errors were encountered: