Problems with Japanese ~ character on Android

I don’t know how to read Japanese - I don’t know what this symbol means.

We use UTF-8 encoding in our XML file and can see all other Japanese characters in our application, except for the "~", which is displayed as a field. "~" Appears in Eclipse and tries to replace it with a tilde (~), but the tilde is smaller and looks a little different (~ vs ~) in our application.

In Google Translate, he interprets the character as a tilde http://translate.google.com/#ja/en/%E3%80%9C

On Android, we used & # 12316; and \ u301C, but both are displayed as fields.

Example of using the symbol "気 分 が 悪 い よ ~!"


My question is: This is the only character that we lack (we have American Android phones and have changed the language to Japanese). How do we create this character?

+4
source share
2 answers

The problem is that there are two identical characters in Unicode. Firstly, we have the U+301C WAVE DASH described here , then we have the U+FF5E FULLWIDTH TILDE described here . The first one is the CJK_Symbols block, which does not seem to be present in all Unicode fonts, for example, on Android. However, the second is in the Half_And_Full_Forms block, which seems to be present, and a quick test on my Android phone with standard Japanese IME confirms that U+FF5E FULLWIDTH TILDE .

Now you mention that you encode UTF-8 - maybe there is an error in the conversion tables that you use? I would recommend that you simply replace all instances of U+301C WAVE DASH with U+FF5E FULLWIDTH TILDE .

UPDATE . You mentioned your translator - maybe they use a Mac that prefers U+301C WAVE DASH ? In addition, here is a WordPress plugin that offers several other characters that should be tested, although I suspect that the tilde / wave dash will be the only problem.

+3
source

Boxes indicate that the font set does not have this symbol. This is how young Japanese people write chouon (vowel "ー"). よ - yo. Formally, you should write よ ー if the sound o is to be held for an extra beat.

If chouon is in the font, you can fix it for them.

I'm on Linux now, and when I switch to Japanese, it gives me ~ tilde.

EDIT I suddenly realized that I could use a character map to find what it was. This is a wavy line of U + 301C.

This is from my Nexus 7. よ ~!

And it was an ordinary tilde. Good luck. I wish I could help.

+2
source

All Articles