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
I18N: xjc generates localized strings of AM/PM so compilation fails #783
Comments
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
|
It looks xjc generates localized strings of AM or PM into "Generated on:" field.
It generates in platform language.
In the following case, "PM" is localized to "�後" when it runs in Japanese locale.
< // Generated on: 2010.07.29 at 12:17:09 PM JST
—
It will cause compilation error when we use different encoding e.g. NetBeans
project is using UTF-8 but it runs on Windows (Shift-JIS).
Actually it happens on NetBeans 6.9.
Please do not use localized strings in generated files so that the sources
can be compiled in any encoding. I'm seeing many related issues that
xjc accepts encoding option. It's one of the option but AM/PM field
is not necessary to localize so let's revert back to English quickly.
Environment
Operating System: All
Platform: All
Affected Versions
[2.2.1]
The text was updated successfully, but these errors were encountered: