cancel
Showing results for 
Search instead for 
Did you mean: 

Issue in Trademark Symbols in Webdynpro JAVA

vijay_kumar49
Active Contributor
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

ErvinSzolke
Product and Topic Expert
Product and Topic Expert
0 Kudos

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

vijay_kumar49
Active Contributor
0 Kudos

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