cancel
Showing results for 
Search instead for 
Did you mean: 

recode russian symbols

Former Member
0 Kudos

Hi All.

I receive the table as follows: resultXML=func.getTableParameterList().toXML();

thus all Russian symbols are displayed "?".

Prompt as me correctly to recode symbols?

Accepted Solutions (0)

Answers (8)

Answers (8)

Former Member
0 Kudos

Probably in the most true way will code the text in unicode by means of abap. At reception to convert back. Now I search abap function for unicode convertings...

Former Member
0 Kudos

Sounds reasonable.

Btw, AFAIK @ JCo client side you do not need to convert back from unicode -- Java does it automatically (probably this is a reason for invalid encoding you have now, while ASCII symbols equals to themselves to UTF8 encoded, while russian symbols are not)

Also check Developer Areas / Web Application Server / ABAP section -- it has several tutorials for unicode-enabling ABAP. Pardons if this is already known to you.

VS

Former Member
0 Kudos

Hi.

As I can establish the coding of symbols necessary to me at use of a method toXML()?

Former Member
0 Kudos

Nick,

According to your previous post you get already invalid encoding in JCo response. Method toXML will not fix this.

Probably somethinf wrong at ABAP side? Also did you try to alter connection locale to russian?

VS

Former Member
0 Kudos

Really anybody did not have problems with codings?

Former Member
0 Kudos

There is a module giving out the table:

10 Волгоград

20 Владивосток

At reception of the table all Russian symbols are replaced "?".

10 ?????????

20 ???????????

Tried

new String(table.getByteArray("CITY"),"cp1251")

does not help

Former Member
0 Kudos

Hmmm...

Probably it depends on connection locale (but I guess it is related to metadata only). Could you try to open connection in RU locale?

VS

guru_subramanianb
Active Contributor
0 Kudos

hi nick,

store the test in a property file and read the file using Resourcebundle class.

-guru

Former Member
0 Kudos

It is clear, that I receive the text in coding ISO8859_1.

But how to me to recode an entrance stream?

It any more localization.

Former Member
0 Kudos

Nick,

Juist curious why you say "receive" if you are showing code with input parameters? What is displayed incorrectly? Defaults? Misc. metadata? (short text for parameters)?

VS

Former Member
0 Kudos

Nick,

Where and how you display resultXML? Probably you introduce error in your logging / debug?

Also do parameters assigned themselves contain correct russin text?

VS

guru_subramanianb
Active Contributor
0 Kudos

Hi Nick,

You have use java.util.ResourceBundle class for using Localization in ur application.You have to have a key value pair of english & russian symbols stored in a property file.Import that property file in your class path and read it from the file.

How to use Resourcebundle class can be viewed from :-

http://java.sun.com/j2se/1.4.2/docs/api/index.html

Hope it helps.

Regards,

Guru