Sometimes the jsp garbled

LabKey Support Forum (Inactive)
Sometimes the jsp garbled wit2wit  2017-03-13 07:03
Status: Closed
 
hi,

I use IntelliJ idea to build system right.I see gibberish onscreen when I click on a workbook.

Thanks
 
 
Jon (LabKey DevOps) responded:  2017-03-13 12:23
Hello,

LabKey doesn't support GBK (Chinese Character Extension Sets) and instead supports UTF-8.

You will need to modify your settings within Tomcat to utilize UTF-8 encoding.

https://www.labkey.org/home/Documentation/wiki-page.view?name=configTomcat#9

Regards,

Jon
 
wit2wit responded:  2017-03-14 03:32
Dear Jon

I modified the server.xml as if still does not solve the problem.Please help me see the server.xml.
 
Jon (LabKey DevOps) responded:  2017-03-14 20:40
Hello,

What version of LabKey are you running? Is this version being pulled from our trunk branch or are the bits built from another source?

There should be a file called workbookSearch.jsp that controls the Workbook (location: server/modules/core/src/org/labkey/core/workbook/workbookSearch.jsp)

The Chinese text you're seeing would have had to been hardcoded into the jsp code, but I'm not seeing it in our trunk build, so I'm questioning on whether it was placed in your code locally.

Regards,

Jon
 
wit2wit responded:  2017-03-15 01:43
Dear Jon

I'm using version LabKey16.3-48563.53, I tested it in JAVA to write Chinese text display correctly, written in JSP Chinese text display is garbled.Why?

Thinks
 
Jon (LabKey DevOps) responded:  2017-03-15 12:52
Hello,

Unfortunately, these kind of modifications are not supported by LabKey. You are free to make enhancements as you see fit for your business needs that does not violate the open-source agreement for our software, but since these enhancements you're working on are not directly from the LabKey platform, we are unable to provide any assistance with them. We do apologize for any inconvenience this may cause.

Regards,

Jon
 
wit2wit responded:  2017-03-29 20:33
Dear Jon

Why the button names are not resolved?

Thanks
 
Jon (LabKey DevOps) responded:  2017-03-29 23:35
Hello,

Best guess is that the unicode isn't being read due to using the wrong tags.

Can you follow along to the solution here?

http://stackoverflow.com/questions/25029077/how-to-submit-and-display-unicode-datanon-english-on-jsp-page

The problem described looks pretty close to what you're having issues with.

Regards,

Jon