iOS Question webview with unicode characters

Discussion in 'iOS Questions' started by le_toubib, Jun 10, 2015.

  1. le_toubib

    le_toubib Active Member Licensed User

    hi all
    i m loading a local html file into a webview, and it works fine.
    But ,
    the html file contains english and arabic text (html is dynamicly generated), the english text is showing normally but the arabic letters are not.
    i wonder what am i missing?
     
  2. Pendrush

    Pendrush Active Member Licensed User

    HTML:
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    or
    HTML:
    <meta charset="utf-8" />
    Try to add meta tag inside head tag, as in example above.
     
    le_toubib and Erel like this.
  3. le_toubib

    le_toubib Active Member Licensed User

    worked like charm
     
Loading...