Bug 63370 - Message files (LocalStrings_*.properties) of the examples webapp not converted to ascii
Summary: Message files (LocalStrings_*.properties) of the examples webapp not converte...
Status: RESOLVED FIXED
Alias: None
Product: Tomcat 9
Classification: Unclassified
Component: Examples (show other bugs)
Version: 9.0.19
Hardware: All All
: P2 trivial (vote)
Target Milestone: -----
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-04-20 19:44 UTC by Woonsan Ko
Modified: 2019-04-23 17:39 UTC (History)
0 users



Attachments
HelloWorld servlet with broken chars (26.76 KB, image/png)
2019-04-20 19:44 UTC, Woonsan Ko
Details
HelloWorld servlet with the fix in PR (22.09 KB, image/png)
2019-04-20 19:55 UTC, Woonsan Ko
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Woonsan Ko 2019-04-20 19:44:30 UTC
Created attachment 36537 [details]
HelloWorld servlet with broken chars

Because the message files (LocalStrings_*.properties) of the examples webapp are not converted to ascii during the build, most servlet examples in http://localhost:8080/examples/servlets/ display broken chars.
Comment 1 Woonsan Ko 2019-04-20 19:55:28 UTC
Created attachment 36538 [details]
HelloWorld servlet with the fix in PR

This problem can be reproduced if you visit the example servlet pages after setting your browser's page language preference to a non-English language.

Fix is in this PR:
- https://github.com/apache/tomcat/pull/159

I will merge it next week if there's no objection.
Comment 2 Woonsan Ko 2019-04-23 17:39:25 UTC
Fixed in:
- master for 9.0.20 onwards