Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Building Android App: Irish Language support

  • 23-09-2010 10:30am
    #1
    Registered Users, Registered Users 2 Posts: 63 ✭✭


    Hi,

    I am trying my arm as creating a Android App at the moment (my first) which requires support for Irish (Gaeilge). Currently the word Slán gets displayed like this

    Sl(squre with question mark in it)n

    It cant handle the Fada over the a, this is probably basic stuff but any help would be appreciated.;)


Comments

  • Registered Users, Registered Users 2 Posts: 14,378 ✭✭✭✭jimmycrackcorm


    What are you using to display the text - is it a text control? Where do you define your text from and are you specifying utf-8 where required?


  • Registered Users, Registered Users 2 Posts: 19,549 ✭✭✭✭Krusty_Clown


    Try representing the fada using it's unicode codepoint, e.g.:
    sl\u00E1n
    ...where \u00E1 is the representation of the character á.

    Babelpad is a handy application that will allow you to convert from unicode characters to universal character names (UCN) and back again.


  • Registered Users, Registered Users 2 Posts: 63 ✭✭whatthefeck


    Thanks Guys for you replies!

    No joy unfortunately

    My res/layout are set to use

    <?xml version="1.0" encoding="utf-8"?>What I have done is download Searchable Dictionary
    and edit the raw/definitions.txt file

    It just seems to be data returned from the definitions.txt that is not formatting correctly.
    Probably need to make this a .xml file or something ???

    http://developer.android.com/resources/samples/SearchableDictionary/index.html


  • Registered Users, Registered Users 2 Posts: 748 ✭✭✭sealgaire


    I can't help but good luck with it


  • Registered Users, Registered Users 2 Posts: 14,378 ✭✭✭✭jimmycrackcorm


    It just seems to be data returned from the definitions.txt that is not formatting correctly.
    Probably need to make this a .xml file or something ???

    But are you reading it as utf-8?

    String dictFile = "/sdcard/dictionary.txt";
    int BUFFER_SIZE = 1024;

    BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream(dictFle), "utf8"),BUFFER_SIZE);

    ...


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 669 ✭✭✭whatstherush


    Had similar problem on different platform. As well as doing what jimmycrackcorn said make sure the dictionary.txt is encoded as utf8.


Advertisement