Questions tagged [chinese-locale]

Questions related to specific aspects of machine-processing Chinese language, or to code that is executed under Chinese localization settings.

369 questions
485
votes
20 answers

How to fix: "UnicodeDecodeError: 'ascii' codec can't decode byte"

as3:~/ngokevin-site# nano content/blog/20140114_test-chinese.mkd as3:~/ngokevin-site# wok Traceback (most recent call last): File "/usr/local/bin/wok", line 4, in Engine() File "/usr/local/lib/python2.7/site-packages/wok/engine.py", line 104, in…
fisherman
  • 10,371
  • 5
  • 16
  • 16
79
votes
3 answers

Language codes for simplified Chinese and traditional Chinese?

We are creating multi-language subsites on our website. I would like to use the 2-letter language codes. Spanish and French are easy. They will get URLs like: mydomain.com/es mydomain.com/fr but I run into a problem with Traditional and…
jeph perro
  • 5,852
  • 24
  • 82
  • 121
20
votes
2 answers

ReportLab: working with Chinese/Unicode characters

TL;DR: Is there some way of telling ReportLab to use a specific font, and fallback to another if glyphs for some characters are missing? Alternatively, Do you know of a condensed TrueType font which contains the glyphs for all European languages,…
ztorage
  • 303
  • 2
  • 5
12
votes
1 answer

Wrong sorting with Collator using Locale.SIMPLIFIED_CHINESE

I'm trying to order a list of countries in Chinese using Locale.SIMPLIFIED_CHINESE, which seems that it orders using pinyin (phonetic alphabet, that is characters are ordered according to their latin correspondent combination, from A to Z). But…
elegarpes
  • 163
  • 8
11
votes
2 answers

How to publish my Android app on Tencent or 360 mobile?

I have a fully working APK of an Android application I have developed. The app only have ads and some basic functions, not any Google Admob ads or any Google in-app purchases. I wish to market this app to China, but the Google Play store is…
Tal Angel
  • 783
  • 1
  • 14
  • 38
10
votes
1 answer

CSS - Why do Chinese websites use English font-family

I have worked on a couple of multi lingual website with both an English and Chinese version. I would always specify a Chinese CSS font-family for the Chinese version, and an English one for the English version. Makes sense…
Jones03
  • 1,017
  • 2
  • 10
  • 28
9
votes
4 answers

Element UI Pagination in Chinese instead of English

I started using the very nice Element UI components, and when I try to add the pagination component in my project using
Daniel
  • 749
  • 9
  • 21
9
votes
5 answers

How can I check if a string contains Chinese in Swift?

I want to know that how can I check if a string contains Chinese in Swift? For example, I want to check if there's Chinese inside: var myString = "Hi! 大家好!It's contains Chinese!" Thanks!
He Yifei 何一非
  • 2,292
  • 3
  • 31
  • 66
9
votes
1 answer

Chinese localization not worked with PHP gettext extension as it works with English

I'm already localized a website from Russian to English with PHP and gettext just with wrapping all strings into __($string) function. It works. Here's the gists: https://gist.github.com/Grawl/ba8f39b8398791c6a67e But it don't work with Chinese…
9
votes
3 answers

libgdx draw chinese characters

I like to print Chinese text in my application. 1.When I try this, the screen will be empty. There is no error at the console. Create method: FreeTypeFontGenerator gen = new FreeTypeFontGenerator(Gdx.files.internal("fonts/DFLS1B.TTF")); font =…
Michael S
  • 665
  • 2
  • 10
  • 24
8
votes
1 answer

How to get Chinese locale to display in chinese as specifically simplified or traditional

I'm generating a list of locales and printing out their local display languages (i.e. printing out ja_JP as 日本語) using java.util.Locale. I noticed that both zh_CN (chinese simplified) and zh_TW (chinese traditional) localize as 中文 rather than 简体中文…
EvilAmarant7x
  • 1,919
  • 3
  • 23
  • 32
7
votes
3 answers

Chinese URL loads correctly in Edge but not other browsers

This page was developed in english which works well in Chrome and Edge browsers. Some community members asked then to translate it to Chinese. Same strategy to create the page was taken with the following resulting page. The problem is that…
7
votes
1 answer

MSKLC under Windows 10: Create custom keyboard layout which supports IME (input method) for Chinese and combined input in Spanish

This question is originally posted by me in Microsoft Community at: https://answers.microsoft.com/en-us/windows/forum/windows_10-other_settings/msklc-under-windows-10-create-custom-keyboard/8c5a7137-d575-4247-8ab3-b4dd1e5fb437?tm=1495318604424 In…
WesternGun
  • 7,222
  • 56
  • 97
7
votes
1 answer

How to use Google's Text-to-Speech service for Chinese characters on Android?

I'm trying to pull an audio file from google's text-to-speech function. Basically, you toss in the link and then concat whatever you want to be spoken at the end of it. I've gotten the below code to work just fine for English, so I think the problem…
Matter Cat
  • 1,488
  • 1
  • 14
  • 23
7
votes
1 answer

Apache FOP Displaying ### with SimSun

I am maintaining a program which uses the Apache FOP for printing PDF documents. There have been a couple complaints about the Chinese characters coming up as "####". I have found an existing thread out there about this problem and done some…
user3826668
  • 127
  • 2
  • 7
1
2 3
24 25