-
Notifications
You must be signed in to change notification settings - Fork 467
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
needs encoding conversion using LanguageEncoding in PPDs #1475
Comments
CUPS.org User: mike Reassigned to be pri-2 against 1.2; we should be able to do this automatically in ppdOpen2(). |
CUPS.org User: htl10 I am sorry - the suggestion in the initial post is not entirely clear There are three sources of non-ascii texts: Details (1) and (3) are not controlled by cups - so they have to I think the initial poster missed a point - the prefered |
CUPS.org User: mike htl10: First, we only provide UTF-8. Web browsers must support UTF-8 to be standards-compliant, and CUPS only uses UTF-8 internally. The current behavior of not converting UI text strings is an error. Second, the point is that we will transcode from the PPD encoding to UTF-8, so that we always have UTF-8 (your #1) Finally, when displaying to the console, we transcode from UTF-8 to the locale-defined character set (your #3), although not by using any of the APIs you named since we can't depend on iconv being available or supporting UTF-8 (yes, really!) |
CUPS.org User: mike Fixed in Subversion repository. Please let me know if you run into any problems - seems to work OK for ISOLatin1 and ShiftJIS. |
CUPS.org User: kmuto.debian Thanks! It's very close to solution. One problem of the code is that it doesn't care 0xff mask for 2nd character. Following code (contributed by Fumitoshi Ukai, Debian --- cups/transcode.c 2006-03-16 10:38:55.000000000 +0900
|
CUPS.org User: mike Thanks, that did indeed fix things, although I also needed to apply the fix to the 3 and 4 byte code, too. The test program now works, too. |
Version: 1.2b2
CUPS.org User: kmuto.debian
Some PPDs have non-Latin strings, written in encoding of LanguageEncoding.
Although CUPS interface use them as is, it may cause a problem on some environments.
For example, most Japanese PPDs are written in Shift-JIS (LanguageEncoding: JIS83-RKSJ).
To show their option names/values on EUC-JP or UTF-8 encoding environment, CUPS needs to convert them.
Currently Web interface is running with UTF-8 and shows absoletely
unreadable option parameters screen by encoding mismatch.
As far as I know, some steps are needed to implement this.
The text was updated successfully, but these errors were encountered: