×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Feb 2012
    Posts
    60

    Using Urdu in HtmlString

    hi

    i am using Urdu language in html string but it does,nt give me rite string when i parse the html string using html Component but it is giving me ????????????????????????????????????????????????

    but if i use simple string it works fine .

    need a quick help

    thanks

  2. #2
    Nokia Developer Expert
    Join Date
    Aug 2011
    Posts
    555

    Re: Using Urdu in HtmlString

    Hi rana.anees,

    You need to explicitly specify the encoding to UTF8.

    This code is rendered as ????

    Code:
            form = new Form("LWUIT");
            
            HTMLComponent htmlC = new HTMLComponent(null);
            
            htmlC.setBodyText("Hello <b>اردو</b>");
            
            form.addComponent(htmlC);
    But this code is rendered as اردو

    Code:
            form = new Form("LWUIT");
            
            HTMLComponent htmlC = new HTMLComponent(null);
            
            htmlC.setBodyText("Hello <b>اردو</b>", "UTF8");
            
            form.addComponent(htmlC);

Similar Threads

  1. Farsi, Hindi, Urdu viewing problem after fonts change???
    By dgpc in forum News, Announcements and Job Listings
    Replies: 0
    Last Post: 2011-02-04, 07:48
  2. Help! I need Urdu language for my N70
    By AfaqAkhtar007 in forum General Development Questions
    Replies: 1
    Last Post: 2010-09-30, 06:28
  3. Urdu fonts in SMS
    By krtrivdi in forum Python
    Replies: 6
    Last Post: 2010-07-15, 08:47
  4. Right Align the Urdu
    By simsimlhr in forum Mobile Java General
    Replies: 1
    Last Post: 2008-10-27, 14:46

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •