-
Notifications
You must be signed in to change notification settings - Fork 215
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
Importing of itemInfo.lua with UTF-8 character encoding results in an error. #369
Comments
You have to use EUC-KR instead of UTF-8. |
I'm currently using EUC-KR with my IDE, but the import error persists. Does my database need to use it too? Edit: I truncated Edit: Could this be related to my PHP or MySQL version? |
Also having problems with this, I installed Fluxcp locally and it works, after that, export your |
Why should IDE help with php/mysql error :) Change DB (at least for cp_itemdesc table) encoding and/or connection encoding It should work with utf8 actually, so check that connection, database and table actually uses utf8. |
I am confirming that the contents of the itemInfo.lua file hasn't changed by using the wrong character encoding... :)
The database is already using utf8. Same with the connection. I'm pretty sure rAthena and FluxCP ships with the database and connection string with UTF8, so I am not sure how that is helpful. |
Ah, my mistake. I thought the file was worked on with the wrong encoding. |
All good. If this doesn't get fixed, I will probably create my own import tool. I think I have seen previous bugs where the importer broke. It seems kinda flimsy. |
It seems the error goes away when I downgraded from PHP 8.x to PHP 7.2. @Akkarinage the README says the project uses PHP 5.2... It seems the documentation for FluxCP in regards to dependencies is severely lacking and major bugs go ignored. Can you confirm the supported version of PHP and MySQL? At this point I plan to write my own control panel because the FluxCP codebase is a mess and sorting through everything seems like more pain than it's worth. I also noticed that the mapdb and mobdb were removed without a replacement as well... Unsure if there are any security vulnerabilities as well. It doesn't help that PHP 5.2 is being pushed still. |
Environment
Current Behavior
An error occurs when importing itemInfo.lua from the translation project.
Repository: https://github.com/llchrisll/ROenglishRE
File: https://github.com/llchrisll/ROenglishRE/blob/master/Pre-Renewal/System/itemInfo_EN.lua
It might have something to do with UTF-8 character set-
Originally my IDE wasn't setup correctly and it worked fine (UTF-8 charset seemed to have been discarded and replaced with random symbols).
Issue goes away when not using UTF-8 character encoding, but obviously I need to use UTF-8.
Once I fixed my IDE and ensured UTF-8 was correctly set up I started running into issues.
The issue appears when using the UTF-8 as seen below:
Most items still import just fine, but it seems that somewhere at the very end causes problems.
Any help on this would be greatly appreciated!
Error:
Expected Behavior
Import of itemInfo.lua should be free of any errors.
Steps To Reproduce
Anything else?
No response
The text was updated successfully, but these errors were encountered: