-
Notifications
You must be signed in to change notification settings - Fork 13
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
Support explicit encodings other than UTF-8 #4
Comments
Can I work on this issue? |
Do you know what needs to be done? In general, we like to talk and discuss concepts and details before building the implementation, and also during the process, to avoid implementations that go in the wrong direction or miss critical details. |
Hey @ocram I will first understand what needs to be done, and then come up with a plan in the coming days! |
You’re right, in both of these files, some changes and generalization are necessary. The shell script would need to accept an optional encoding supplied as a parameter, in a format that works for the Gettext utilities. In the PHP code, we don’t want to try all those possible encodings for every locale that is specified, so it should definitely first detect which encodings are relevant for each specific locale in question (see the list above). The detected set of relevant encodings should be tried only after UTF-8. Finally, whatever encoding is used, this must be compatible with PHP’s current internal encoding (and the encoding of any output), whichever those may be. By the way, I’m not sure how urgent all this is, because most applications should be using UTF-8 now, especially newer ones. |
Source: https://www.gnu.org/software/gettext/manual/html_node/Header-Entry.html
The text was updated successfully, but these errors were encountered: