Japanese characters display weird distance in Android TextView and buttons

I am trying to localize an Android app in Japanese. I fell into the jml file in Japanese lines, and everything is pretty good, except for the Katakan characters with two small dashes or a small circle in the upper right corner. For these characters, the display is 2 full characters wide.

Here is a simple example showing a space problem with the word "site" in a katakana:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
>
    <TextView  
        android:layout_width="fill_parent" 
        android:layout_height="wrap_content" 
        android:text="ウェブサイト"       
        android:typeface="normal"/>
</LinearLayout>

When it is displayed on the phone, the third character takes up additional space. Any ideas what is going wrong?

+3
source share
2 answers

"ブ" → "ブ".
UTF-8.

+1

strings.xml. , .

0

Source: https://habr.com/ru/post/1793980/


All Articles