on 08-10-2005 11:32 AM
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?
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...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
Hi.
As I can establish the coding of symbols necessary to me at use of a method toXML()?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Really anybody did not have problems with codings?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi nick,
store the test in a property file and read the file using Resourcebundle class.
-guru
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.