How display chinese character
i use data table ,but the data from oracle can not display normally,because it is chinese
the code is : i want the value of outputText3 encoding,
how do?
<h:column binding="#{Page1.column2}" id="column2">
<h:outputText binding="#{Page1.outputText3}" id="outputText3" value="#{currentRow['WENDU']}"/>
<f:facet name="header">
<h:outputText binding="#{Page1.outputText4}" id="outputText4" value="温度情况"/>
</f:facet>
</h:column>
<h:column binding="#{Page1.column3}" id="column3">
<h:outputText binding="#{Page1.outputText5}" id="outputText5" value="#{currentRow['FENGLI']}"/>
<f:facet name="header">
<h:outputText binding="#{Page1.outputText6}" id="outputText6" value="风力情况"/>
</f:facet>
</h:column>
Hi,
This particular feature is not supported in the current version of Creator. However this will be available in future releases. Please keep watching for the updates and newer version releases. Till then happy developing in Creator
Cheers :-)
Similar Messages
-
How can i display chinese character in asp?
---windows2003
---iis6.0
---oracle92010
---oo4o
oracle character set is we8mswin1252
sqlplus display chinese character normally.
when i export the oracle table into microsoft excel,the excel can display chinese character normally.
but when i write code in asp.The IE can not display the chinese character?
who would tell my why?
Message was edited by:
user525971Hi,
here's a link to the SQL Developer forum: SQL Developer
Frank -
Display Chinese character in iText
hi all I need to display Chinese character in my pdf file
I have iTextAsian.jar on my libraries , but the Chinese character did not show up
nested1.addCell(new Phrase(chinessname));I download freetype-2.1.10,
and I get ./configure --enable-static
./configure: make: not found
how to continue ... inorder to create your owner font
by the way I download the new extrajars-2.1.zip, this new jar supporting Chinese characters . but my first font is not working second font is work fine I don't know why?
first one
BaseFont bfChinese = BaseFont.createFont("STSong-Light", "UniGB-UCS2-H", BaseFont.NOT_EMBEDDED); not working
//second one
BaseFont bfChinese= BaseFont.createFont("MSungStd-Light", "UniCNS-UCS2-H", BaseFont.NOT_EMBEDDED);
Thank you! -
DSO content can't display Chinese character
Hello experts,
I extract data from non-sap system (non-unicode) to BW DSO (7.0 unicode).
The DTP, data extraction and the activation all work fine.
However, the content of the DSO can't display the Chinese character.
Is there any setting I miss?
How can it display Chinese character as the data in source system?
Any information is very appreciated.
Thanks in advance.Hi,
Make sure Chinese Language Patch applied on BW system. You can see Chinese does not mean Chinese Language Patch applied.
However, even if Language Patch is not applied, you still can see Chinese in reports via Portal.
Good luck
Jonas -
Display chinese character HTML in iPS3sp3
Hi there,
I am using iPS3sp3 and I modified it so that JSP can display chinese character correctly. But somehow I still can not display the chinese character in normal HTML.For instance, I put chinese character in Ldap.properties file but when user go to the Ldap login screen, the chinese can not be displayed correctly. The following is the modification I have done and can anybody please give me some help?
adding zh_TW in iwtPlatform-availableLocales
adding zh_TW in iwtPlatform-locale
adding BIG5 in iwtPlatform-HTMLcharset
adding ips.locale=en_US,zh_TW,zh_TW.BIG5 in platform.conf file
Setting, User's Default Locale: zh_TW
Setting, User's Default HTML charset: BIG5Finally, I made it work. The solution is pretty straight forward. All I need to do is to convert these kind of html file to utf8 encoded files and then, it works perfectly. Hope this might be useful for some people.
-
How can I display Chinese Character correctly in JSP
<p>Dear Expert,</p><p>Now I develop web application which using CR report, the development tool is IBM RAD(rational) and the database is DB2 UTF-8. Because need user to input something in JSP, so the programmer use "GB2312" to convert to insert into the database. But when I create the crystal report and view in the web, the Chinese character can't disply correctly, like "???????", even I formated the font in report, doesn't work too.</p><p>And I set the report JSP charset to "GB2312" or "UTF-8", both of them failed. Following is my JSP seting:</p><p><%@ page language="java" contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%%></p><p>or <%@ page language="java" contentType="text/html;charset=GB2312" pageEncoding="GB2312"%%></p><p>And I think I must convert the data from database site firstly, then display, but I don't know where I can coding it and how to coding? Could any one tell me how to get it? </p><p>I use RAD(Rational) as development tools.</p><p>Thanks so much for your any comments. Many thanks!</p><p>Steven</p>
<p>Hi Steven,</p><p> It sounds like you are on the right track to get the Chinese data to appear up correctly in the report. Can you tell me if you are using the JSF viewer or the JSP viewer?</p><p>From what the developers are telling me the following should work:</p><p class="MsoNormal"><font face="Arial" size="2" color="navy"><span style="font-size: 10pt; color: navy; font-family: Arial">For JSP viewers to set content type correctly you can either use</span></font></p> <p class="MsoNormal"><font face="Arial" size="2" color="navy"><span style="font-size: 10pt; color: navy; font-family: Arial"><%@ page contentType="text/html;charset=UTF-8" %></span></font></p> <p class="MsoNormal"><font face="Arial" size="2" color="navy"><span style="font-size: 10pt; color: navy; font-family: Arial">Or</span></font></p> <p class="MsoNormal"><font face="Arial" size="2" color="navy"><span style="font-size: 10pt; color: navy; font-family: Arial">response.setContentType("text/html;charset=UTF-8âu20AC)</span></font></p> <p class="MsoNormal"><font face="Arial" size="2" color="navy"><span style="font-size: 10pt; color: navy; font-family: Arial">or </span></font></p> <p class="MsoNormal"><font face="Arial" size="2" color="navy"><span style="font-size: 10pt; color: navy; font-family: Arial">simply call viewer.setOwnPage(true); if it not necessary to blend with other pages.</span></font></p> <p class="MsoNormal"><font face="Arial" size="2" color="navy"><span style="font-size: 10pt; color: navy; font-family: Arial"> </span></font></p> <p class="MsoNormal"><font face="Arial" size="2" color="navy"><span style="font-size: 10pt; color: navy; font-family: Arial">For JSF viewer the third option is not available.</span></font></p><p class="MsoNormal">What does your JSP page code look like? Also, what does the output look like?</p><p>Finally, one last thing is to ensure that the font you are using in the report is available to the engine at runtime. This will mean that it wll need to be installed on the application server where your JSP page is running. Give this a try and let me know what you find. </p><p>Regards,<br/>Sean Johnson (CR4E Product Manager) <br/><br/> Rate this plugin @ Eclipse Plugin Central </p>
-
Need help in Displaying Chinese Character in JSF
Hi. Good Morning!
I'm having problem with displaying Chinese Characters in JSF. I've tried placing all the chinese words in the *.properties file however it doesn't work..
The result in the browser is something like this.
���� ��������� ���� ��������� ���� ���������Hi,
When you say that you put Chinese characters in
*.properties files, can you be more specific? Did
you use native2ascii to convert the files to ASCII?
What is the character encoding setting for the JVM?
Have you sniffed the HTTP headers? If so, what's the
character encoding listed for the response?
Answers to these questions should help you nail down
the problem.
Regards,
PeterHi...
I did not use any converter like native to ascii... an example of what I placed in the properties file is:
title : 以下5种标签的表面要求列样
Request=条码离边框
Tablehead=透明标签
Note1= 透明标签
Note2= 透明标签
NoteA= 印商标图
then when i build the project in linux it turns out to be like this:
title= ???
Request=???
Tablehead=???
Note1= ???
Note2= ???
NoteA= ???
The character encoding for JVm.. i haven't check that yet nor know how... -
Display Chinese Character in SQLPLUS
Anyone have any idea how to display a chinese character from the database? Is it possible to display from sqlplus.
nullIt is possible to display Chinese characters in SQL*Plus. The reference manual at http://www.oradoc.com/ora817/server.817/a76966/toc.htm would be a good starting place to learn more.
- CJ -
Cannot display Chinese Character in ver 10.1.3
Hello,
I would like to ask one more question, when i run my program, it contain two jsp pages,
the first one is to ask the user to input some chinese character, then the second one is to display the input data in the second page. I found out that the second one cannot display the input chinese character, but other chinese character in the second one can be display.
Some of my code in the second one are as follow:
String firstName = request.getParameter("firstName");
中文 <%=firstName%>
The result are displayed are displayed as follow:
中文 ?T???\!
It seems to me that the text can display but the variable cannot display, does any one know the reason?
One of the replies from the JDeveloper forum are as follow:
I seem to recall there was a bug in the 10.1.3 OC4J with passing parameters on the URL in other languages. You might want to ask on the OC4J forum:
OC4J
Regards,
Alan 20/11/2005chulongjiang,
i solve the problem with your advice, thanks lot!
Regards,
Alan 24/11/2005 -
I have a java application with read string from IE browser through JNI interface.
The issue is the String i got, which is "\u963f\u5f1f\u4ed4" can't be display in Chinese directly.
I do following convetion, it doesn't work.
byte[] sb=link.getBytes();
String Zhongwen=new String(sb, "GB2312");
But if I define a this String in my application, it works.
String link = "\u963f\u5f1f\u4ed4";
I bet Java treats first case as a buch of seperate characters since if I build
a String as "\\u" + "963f", I can't get chinese character.
So it is looks I can only use the parseInt(..) method on the Integer class and casting the result to a char.
try
char p = (char)Integer.parseInt(x, 16);
System.out.println(p);
catch(Exception e)
System.out.println(e);
Does antbody have another solution?The most probable source of error is character encoding conversion...most likely from the IE browser to the Java environment. Do you have a way to find out what encoding is used in the browser? IE will transfer form data back to the server in either UTF-8 or the encoding of the original form.
Transfer the data from IE correctly, and you will be able to display the characters without further problem.
John O'Conner -
Display Chinese Character jsp page by using UTF-8
hi all,
I have one jsp page have Chinese character, need to allow user input Chinese character into db, right now my situation is if I set <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> , the Chinese character in my jsp page I can't display correcly, but the inser is okI have to set encoding to big5, then I can't insert chinese character into my db correctly.
can I use UTF-8 to display my jsp page, which have Chinese Character in there?Thank you!Hi Niklas
thank you for the suggestion. somebody told me UTF-8 suppose work, only if you typing your Chiness character in UTF-8 formate, i don't know that is true or not, but that realy a challenge for me, I using jdbc , some time ago, and then stop, and on that period,if I got free time, I did try to learn some tutorials on struct, hibernate, like http://javaboutique.internet.com/tutorials/Struts/; http://courses.coreservlets.com/Course-Materials/struts.html
recently I need to deal with some online form , first I want to use struct, but I keep got forwad problem, I forget the detail error message, and found not place to ask questions, so , I pick jdbc again, so ,if you have some useful link in struct or a nice community for people to learn struct, I am look forward to
know that,
by the way I set *<meta http-equiv="Content-Type" content="text/html; charset=big5" /> in my jsp*
String dbURL="jdbc:mysql://localhost/survey?useBig5=true&characterEncoding=Big5"; in jdbc
keep UTF-8 setting in mysql, it looks solute the problem that I had, hope that can enhabce our knowledge in that
thank you for the help and wish good luck for future. -
Mapbuilder cannot display chinese character properly
I downloaded the latest mapviewer package.I found the mapbuilder cannot display chinese charater properly.neither the charater readed from database,nor the charater I typed. Every chinese character is substitude by a blank square.Anyone have good suggestion?
Hi,
this early preview has not been tested in other
languages than English. We are aware of this problem
with Chinese characters, and it may be related with
font, but
needs more investigation. Which Windows version are
you using?
To start the program setting the language to English
you can try:
java -jar -Duser.language=en -Duser.region=US ...
Thanks.
JoaoI tried . but no helpful. an My os is windows xp -
How display chinese characters?
Hi all,
I want to display chinese characters in JTextPane/JTextField. I code a small program to try but can't get the correct result. The following is my program.
import javax.swing.*;
import java.util.*;
import java.io.*;
import java.awt.*;
public class TestBig5 extends JFrame {
public TestBig5() {
String str = readInput();
JTextField tp = new JTextField();
tp.setFont(new Font("Kai (big5.eten.3.10-1)",Font.PLAIN,16));
tp.setLocale(Locale.TAIWAN);
tp.setText(str);
getContentPane().add(tp);
pack();
setVisible(true);
static String readInput() {
StringBuffer buffer = new StringBuffer();
try {
FileInputStream fis = new FileInputStream("testbig5.txt");
InputStreamReader isr = new InputStreamReader(fis, "Big5");
Reader in = new BufferedReader(isr);
int ch;
while ((ch = in.read()) > -1) {
buffer.append((char)ch);
in.close();
return buffer.toString();
} catch (IOException e) {
e.printStackTrace();
return null;
static public void main(String args[]) {
new TestBig5();
The problem is that the JTextField only shows blank space.
testbig5.txt is a text file that contains big5 encoding characters.
"Kai (big5.eten.3.10-1)" is the only chinese font in my system, and I can use it to display chinese characters in netscape. And the file testbig5.txt can also be displayed in netscape correctly.
I have also tried to use font.properties.zh_TW_Big5 but still no success.
please advise what should I do so that the problem can be fixed. And following is my system config.
Sco unix 5.0.5
JDK 1.2.2
Thanks in advance.
Anson(1) First of all use FileReader and not inputstreams. The diff. is that streams are not unicode compliant whereas readers are.
(2) Similary use only generic fonts.For example, this prints fine for me
jTextField1.setFont(new java.awt.Font("Serif", 0, 12));
jTextField1.setText("Serif \u65e5\u672c\u8a9e");
[email protected]
HP -
How to display Chinese Character(s) in a image on a Linux platform?
Hi,
I have the following code that runs perfect on Windows XP system after I installed the Chinese fonts on it, and set the fontconfig file under jre.
What the program does is: load an image file, write some Chinese chars in it and redisplay the image, so that the image will contain the Chinese characters in it.
I ported the generating image with Chinese Characers part of code into a web application which the servlet returns the modified image to client. The web application is running on a linux box. However, when a user views the image on the browser, the Chinese chars are not well displayed (they are just several squares).
My question is, does the problem comes from the Chinese fonts settings on the linux system where the servlet is running on? And, how to fix the problem, any simple links on how to do that?
Thanks.
public void paint(Graphics g) {
ImageIcon photo = new ImageIcon("C:\\image.jpg");
Graphics2D g2 = (Graphics2D)g;
g2.drawImage(photo.getImage(), 0, 0, null);
g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
Font font = new Font("Arial Unicode MS", Font.PLAIN, 16);
g2.setFont(font);
g2.drawString("¶", 140, 220);
}"Arial Unicode MS" is the font provided by Microsoft, usually with MS Office products. I believe that's why those Chinese are rendered as square boxes on Linux. Either specifying some Chinese font available on your Linux box in the Font constructor, or using one of the logical fonts instead (for JDK5 and later) would help.
Naoto -
Unable to display Chinese character in non-unicode system properly.
Hi, all
My system has been upgraded from 4.6C to 6.0 which is non-unicode system. Chinese characters with long length will be cut and cannot wrap automatically. But it's OK to alphabetes. How could I resolve this?
Thanks..
TD. WeiThe simple and easy way to check
non-unicode character sets are not supported on unicode system any longer. Am I right?
Transaction code i18N
Select
trouble shooting --> printing test --> smartforms --> multiple scripts, select your output device and see print preview. it will display all supported characters.
I guess, above information will be useful for closing the thread.
Regards,
SaiRam
Maybe you are looking for
-
There should be a plus and minus for zoom on the maps for iphone
when driving having to use two hands and navigate is troublesome to say the least. I know its cleaner and simper when not crowding the screen or maybe a prgramming issue just seems like it would be easier to use with one hand when driving sometimes
-
Sound not working Notebook Envy 15 TS windows 8 and windows 8.1 - problem continues
Hello, My computer sound stopped again. I posted previously: http://h30434.www3.hp.com/t5/Notebook-PC-Sound-and-Audio/Sound-not-working-Notebook-Envy-15-TS-windo... After I`ve followed David`s steps my computer`s sound started working again. But it
-
Photosmart C7180 says it is connected to network, but installer does not find
BACKGROUND: Primary Computer I have a mac-mini running both the latest Snow leopard build, as well as Win 7 Pro ver 6.1 build 7600 (64-bit). When I first got the computer, OSX ran through its initial setup. I then downloaded and installed the HP s
-
Workflow menu option not showing up in edit form or the ribbon in SharePoint 2010 list
In a SharePoint 2010 list I created a workflow (in SPD) and published, but in the Edit Item form, there is no Workflow option. In the ribbon, the "Workflow" button is greyed out. But I see this option in other lists. Where is the setting I can get
-
How to display default value on ADF UI?
How can I display a default value on ADF UI? means upon a web page loaded, the default value should appear in a certain control (e.g. input text) without any user action. I tried to assign a value through the backbean constructor but seems not workin