ZK - Open Source Ajax Java FrameworkZK - Open Source Ajax Java Framework

How to display UTF-8 character "1C" in label?

admin
26 Mar 2008 17:39:43 GMT
26 Mar 2008 17:39:43 GMT


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4865429

By: perry_rhodan


I would like to display the UTF-8 character "1C" which is the "field separator"
character as a part of a label. However, I do not seem to be able to get the data to display properly as the output in a Richlet or in a zul file. The zul file does have the encoding set to "UTF-8" and the Richlet handles the encoding for this as well.

Example of what I want to see displayed: SomeText86

What I get: SomeText?86

I want to see that funky block character which is the display representation for hex value of "1C" but instead it is translated to a question mark "?"

I can get this display to work properly in an HTML file outside of the ZK framework but something in the ZK framework is performing some type of translation. How can I get the character to display properly?


admin
27 Mar 2008 03:25:39 GMT
27 Mar 2008 03:25:39 GMT


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4866337

By: jebberwocky

Just out of curiousity, how do you display the "1C" in html?

admin
27 Mar 2008 15:08:26 GMT
27 Mar 2008 15:08:26 GMT


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4867373

By: perry_rhodan

I would like to represent the data as it is with the character present. The character can be used to separate fields in message formats. Here is an example that you can place in the root directory of Tomcat to verify that the data appears as "1C" in the browser as "1C" and not modified to some other character such as "?"

<HTML>
<BODY>
<TABLE>
<TR><TH>Record Data</TH></TR>
<TR><TD>Record Field 1Record Field 2Record Field 3Record Field 4Record Field 4Record Field 5</TD></TR> </TABLE> <BODY> </HTML>