Turkish characters in Android Textview - android

I made an android app. For different languages. But it does not work for turkish characters.How can I solve this problem?
I am loading strings. But when it comes to turkish characters "çile" lets say it prints something different.

Go through these below links, it has been answered.
How can I use Turkish characters like 'ş ç ı ö' in an Android TextView?
Android. WebView and loadData
Unicode characters not displayed in TextView.setText

Related

Android [API 16] WebView not showing crucial UTF-8 characters

I'm having trouble displaying Tshivenḓa special diacritic characters in Android's WebView for API 16. API 24 works fine. I've tried numerous things: fonts, unicode escape sequences in HTML etc. etc.
See characters here:
https://en.wikipedia.org/wiki/Venda_language#Writing_system
I also tried the following solutions to thee same problem:
Android. WebView and loadData;
UTF-8 not encoding html in webview android;
Android WebView UTF-8 not showing;
Android WebView with garbled UTF-8 characters..
All these answers work except for these Tshivenḓa characters (ḓ ṱ ḽ ṋ ṅ
).
I have tried all means of escaping the character and many different encodings.
(http://www.unicodemap.org/details/0x1E12/index.html)
Nothing is working for it. I absolutely can not proceed with my app if I can't get this to work.
Does anybody know how I can fix this?
I have encountered this problem before. Unfortunately Android's default font doesn't support many of these special characters so the only solution I've found is to use a custom font that supports all the characters you need.

#font-face do not work unicode Malayalam in android Cordova

In android #font-face do not work for UTF character.(Webpage hosted in web control using cordova)
The code works on chrome browser both on android as well as desktop.
It do not apply the changes in the application.
Observed that if there are no UTF characters then font styling was applied. Also observed that only the lines that has got UTF it is not applied with the web font style.
It was an indication that the path provided in font-face was correct.
Tried changing the UTF character to the encoded hex value and it did not help.
The Problem
In Android 4.3 the character " ്ര "details about this issue and work around is given here
I require this for Android app developed using cordova(phonegap) and hence rooting and installing is not an option.
I tried to do web view with embedded font (#font-face) and strangely, it is not working for web view in android, but works perfectly in browser of the same device.
The Solution
Got a hint from this stack over flow and this was pointing to this Solution, and thank you for that
Basically We need to get an ASCII based font and convert the unicode to mapping ASCII.
The solution provided was using JAVA and always a chance of missing some characters. Another problem that i faced using this solution was, if there is a mix of English and Malayalam character then the solution give undesirable results.
So I created this jquery plugin
Basically It does the following.
Identify the longest possible Malayalam character sequence and wrap them using tag with configurable class name.This process separate English and non English groups.
Each grouped Malayalam character sequence then converted to ASCII using a configurable mapping w.r.t the font.
The problem of Mix of English and Malayalam is solved, problem of missing some character is fixed, and also #font-face is working. I was able to create 2 fonts mapping.
So far the solution is working for me.
I feel some level of optimization can be done.

Disable unicode replacement emoji in Android Chrome?

Certain unicode characters in the Miscellaneous range would be nice to use, but most phones display them as emoji and that is unwanted because then they can't be styled by CSS font declarations. I know there's a fix for iOS, but I have not found a solution for Android. Is it possible to disable them?
Example: http://jsbin.com/qopiyori/1/
Had the same problem, found the answer on another stack overflow question which worked for me:
add ︎ at the end of the string with the Unicode characters you do not want to be replaced with emoji icons.
How to prevent Unicode characters from rendering as emoji in HTML from JavaScript?
Google Chrome, desktop version 75, seems to disambiguate its approach to rendering Unicode characters based on the first Unicode escape it encounters while loading a page. For instance, when parsed as the first HTML Unicode escape in a page source, and having no emoji equivalent, ⏷ seems to clarify to Chrome that the page contains escapes not to be rendered as emoji. I have not tried this in Android Chrome.

How to show iOS style Emoji characters in Android's EditText?

First, the Emoji characters on Android look different then they are in iOS device. In Android, the Emoji characters are black and white, but in iOS, they look much better.
Some input methods support typing Emoji characters directly in Android devices. For this kind of input method, in Facebook, if I type an Emoji character, then the character is still displayed as the one in Android. But in WeChat, the Emoji character looks the same as iOS.
So my question is, how to implement the same function as WeChat? Please see below two snapshots, the first one is WeChat, then the second one is Facebook.
Thanks a lot.
WeChat:
Facebook:
You need to download all Emoji images, keep it local in your application and replace the unicodes of smileys with Emoji images in your EditText/TextView.
This link shows one of the ways to add images inline with text in an EditText/TextView.
Finally I found out the method to replace the unicode character with corresponding Emoji image. Here is the github link of my library/sample project. Enjoy. :-)
https://github.com/IPL/iOSStyleEditText

Punjabi/Telugu/Tamil on Android using unicode UTF-8

I am trying to display text in Indian regional languages on an Android app.
I've set up all the localization folders even though, I just want to have only one language for my app (say Punjabi).
In my strings.xml I have tried putting Hindi characters and Chinese characters and these are displayed correctly on the emulator. But when I put in Punjabi characters nothing shows up on the emulator.
Any reason for this? Can I overcome this problem?
I have the option of using a .ttf file in the assets folder for punjabi font. But that is not what I want to do because it does not give me complete control over the contents being displayed. Each .ttf behaves differently.
Any help is truly appreciated.
There is no support for local Indian languages on Android as yet. Hence the UTF-8 characters that fall outside the acceptable range for Android are ignored. Hence we see a blank being displayed.

Categories

Resources