Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Arabic text not displayin in cl_gui_html_viewer method load data

mohammadaamir_khan
Participant

Hi,

I am trying to display some arabic text using class cl_gui_html_viewer in module pool screen container.

English text is displayed proper but Arabic text is displayed as garbage.

Program is Unicode and i an using method GET_RECOMMENDED_CHARSET with language as 'A' and passing output to LOAD_DATA method.

Please suggest how to display Arabic text.

APPEND '<html>' TO html.

APPEND 'عزيزي المستخدم،' TO html.

Thanks

1 ACCEPTED SOLUTION

Sandra_Rossi
Active Contributor

For some reasons, so that all non-roman characters are correctly displayed, you must pass an HTML table with both <HTML> and <BODY> tags.

You don't need to pass a charset value.

2 REPLIES 2

Sandra_Rossi
Active Contributor

For some reasons, so that all non-roman characters are correctly displayed, you must pass an HTML table with both <HTML> and <BODY> tags.

You don't need to pass a charset value.

mohammadaamir_khan
Participant
0 Kudos

Thanks Sandra,

After passing <BODY>, arabic is displayed properly.