Search Unity

Question Vietnamese character in input field

Discussion in 'UGUI & TextMesh Pro' started by tongvietdung, Jan 8, 2021.

  1. tongvietdung

    tongvietdung

    Joined:
    May 14, 2020
    Posts:
    2
    Hi. I'm making a simple app with input field. I want to type vietnamese to input field but it cannot be showed correctly
    When I need : "Chào bạn"
    It will be: "Ch?o b?n"

    Can someone help me?
     
  2. Stephan_B

    Stephan_B

    Joined:
    Feb 26, 2017
    Posts:
    6,596
    Please use TextMesh Pro and the TMP Input Field.

    Make sure your font asset includes the above characters and glyphs or that you have a dynamic fallback assign to your primary font asset that can handle those characters. See the following two videos about font asset creation to handle various languages.





    Next, how are you typing those characters? Are you using IME or a Vietnamese configured keyboard? Please provide me with the key sequence so I can test.

    If I copy / paste the above text in the Text Input Box of a TMP text object, I get the following results.

    upload_2021-1-8_16-37-53.png

    The above is using the default LiberationSans with dynamic fallback also using LiberationSans. This is how they are configured by default in the TMP Essential Resources.

    The ? could be a key input issue which is why I was asking about your input method.
     
    Namnguyen4w likes this.
  3. Namnguyen4w

    Namnguyen4w

    Joined:
    Feb 9, 2022
    Posts:
    1
    When I build the project, this error still occurs