Questions tagged [chinese-locale]

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

398 questions
515
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…
fisherman
  • 10,739
  • 5
  • 20
  • 16
98
votes
4 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
  • 6,242
  • 26
  • 90
  • 124
21
votes
3 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
  • 323
  • 2
  • 6
14
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
  • 1,301
  • 3
  • 29
  • 63
12
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
  • 789
  • 2
  • 9
  • 23
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
  • 9
10
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,592
  • 4
  • 38
  • 69
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,207
  • 2
  • 12
  • 30
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
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
  • 2,059
  • 4
  • 24
  • 33
9
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
  • 145
  • 1
  • 2
  • 8
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
  • 731
  • 2
  • 10
  • 26
8
votes
4 answers

How to use mPDF for Chinese Language

I am using mPDF to save form input data to PDF. For English, it is working fine. Anyone can use this code to save HTML Form data to PDF. Issue: In order to fulfill my project requirement I need to use the Chinese Language. My current code is not…
ZiaUllahZia
  • 1,072
  • 2
  • 16
  • 30
8
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
  • 11,303
  • 6
  • 88
  • 157
7
votes
1 answer

What language specifically is Chinese, language code 'zh'?

I understand that there is Simplified Chinese (zh-Hans) and Traditional Chinese (zh-Hant). However Xcode allows to localize for Chinese (zh). From the localization fallback concept I understand that it is the fallback for Simplified Chinese and…
Manuel
  • 14,274
  • 6
  • 57
  • 130
1
2 3
26 27