on 04-14-2015 9:53 AM
Hello Friends,
i have one issue on "Trademarks" symbols in Webdynpro JAVA Application
DB:
When i update the data into the data base directly using "Trademarks" symbols. its updated properly. Please look at below screen shot for data in DB
EJB:
when i read the data from DB using EJB application. there it printed "PRODUCT_LONG_NAME:Xyzi� 501 Dusty Black 00501-0039 � ". Please look at NWA screen shot and ejb code.
while (rs.next()) {
ProductDesc product = new ProductDesc();
System.err.println("PRODUCT_LONG_NAME:"+rs.getString("PRODUCT_LONG_NAME"));
product.setLongDesc(rs.getString("PRODUCT_LONG_NAME"));
productList.add(product);
}
NWALogs
what ever print the message in NWA. same message is displayed in WDJ UI also
what ever trademarks is available in database. same think i need to display in UI. Please help me on this issue,
Regards
Vijay Kalluri
Hi,
normally WD Java should be able to handle this, but what if you add it to the DB in the first place in a unicode way?
I added a label to a test wd java view of mine, and bound a string context attribute called "tm" to it and then used this code in wdDoInit():
wdContext.currentContextElement().setTm("™"+"with unicode: \u2122");
This results the following in runtime:
As you can see both ways it is working.
Does this help?
Cheers,
Ervin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Ervin,
As you said, the Trademark is hard coded.
But my requirement is fetch from from DB and display into the UI through Webdynpro JAVA and EJB
In DB:'Levi® 501 Dusty Black 00501-0039 ©
when i read the data from DB using ejb application, its printed "PRODUCT_LONG_NAME: Levi� 501 Dusty Black 00501-0039 � ".
but i want to display in UI also 'Levi® 501 Dusty Black 00501-0039 ©
Regards
Vijay Kalluri
User | Count |
---|---|
84 | |
10 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.