Skip to Content
author's profile photo Former Member
Former Member

CL_GUI_HTML_VIEWER + Unicode Post data

Hi all,

I'm working on a program and we have a html_viewer control to display some data at the bottom of the screen.

until now we've had a lot of problems with unicode, ie, the info would be ok in englisch, but not in polish, or swedish..

the only way I found to make it work reliable is to convert my page to utf-8 with the help of CL_ABAP_CONV_IN_CE and sending the data to the control in binary form (load_data w/ utf-8).

now the problem is that users should be able to edit some of the info and save it, so I thought of using the SAPEVENT from the viewer class by submiting a form and catching the event in my program, but when the data entered contains "non-standard" chars (for example PL ), the data in the query_table and postdata is corrupted, and the polish chars are replaced by wierd things...

Does anyone know how to post unicode data from a html form and get in in the event from the class cl_gui_html_viewer ?

I had a look at the program SAPHTML_EVENTS_DEMO, but that does not work either.. ie, try to enter polish chars in the name and press "submit" and you get wrong chars in the fields at the top of the screen.

thanks.

Luis De la Parra

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Oct 08, 2005 at 03:42 PM

    Hi Luis,

    do you have a solution?

    Regards,

    Vlad

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.