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
0
votes
1 answer

converting Chinese Text to UTF-8

This issue as not been described on SO. When I type in Chinese 咕噜咕噜 , I paste into Eclipse and it appears as \u5495\u565C\u5495. This is perfect. I use it for i18n properties and it works. I have a Chinese xml file. I am not sure of its technical…
Jake
  • 4,322
  • 6
  • 39
  • 83
0
votes
2 answers

How to read Chinese files?

I'm stuck with all this confusing encoding stuff. I have a file containing Chinese subs. I actually believe it is UTF-8 because using this in Notepad++ gives me a very good result. If I set gb2312 the Chinese part is still fine, but I will see some…
JasonTS
  • 2,479
  • 4
  • 32
  • 48
0
votes
1 answer

Using Mechanize to get Chinese characters from a website is returning nothing

I'm currently trying to scrap a Chinese character as well as non standard letters. In the results it's like Mechanize just skipped the Chinese character or non standard letter. My code: import mechanize import re br =…
CJ Jacobs
  • 299
  • 1
  • 16
0
votes
2 answers

Posting form in JSoup doesn't produce any response

I'd like to automatically retrieve the results of searching for a Chinese character on this webpage. After inputting a character such as '馬' into the search field labelled '字形', submitting the form produces a form called 'HiddenFrom' as follows, the…
Jamie Birch
  • 5,839
  • 1
  • 46
  • 60
0
votes
1 answer

How can I have PHP send Chinese characters in an email?

I've already scoured StackOverflow trying to find the answer but none of the answers provided to similar questions have solved my problem. So I have a pretty basic form here, and I want it to be able to accept Chinese characters, and then send the…
0
votes
1 answer

Take Chinese HTML content and move it into the appropriate div in another HTML file

I've been tasked with taking a Chinese translation of English HTML, and re-styling it to match the original English HTML. The Chinese "HTML" no longer has any of the original Divs or styling of the English HTML. The Chinese character encoding is…
lime517
  • 26
  • 1
  • 7
0
votes
0 answers

Issue with unicode and chinese characters in Python

I'm working with Python 2.7 in a script that would allow me to separate words in chinese sentences (in which there are no spaces between words). I have many problems here that I guess are related to the encoding: If I try to do this simple command…
0
votes
1 answer

Swift cannot read madarin from JSON api?

I'm trying to read from the API's i've created using Kimono. However, when i print it in my console it seems like it can't read Mandarin Chinese in my xcode? Am I missing something here? Here's my code: let myContentsToBeScanned =…
user3175707
  • 1,123
  • 3
  • 11
  • 14
0
votes
0 answers

Delphi XE2 application fails to run in Windows (Chinese Language Pack)

I have a Delphi program which runs on Microsoft Windows (English) environment, but fails when running in a Windows (Chinese) environment. The error message is: Exception EReadError in module rtl160.bpl. Error reading Button2.Click Invalid property…
Mike Pettigrew
  • 156
  • 1
  • 8
0
votes
1 answer

(C++). Non-unicode language (Simplified Chinese) input/output

I am new to programming and was working on some examples in my C++ textbook. I was able to do most of the examples, but a few problems came up when I tried to do the following: Attempting to display Chinese characters on a program similar to "Hello…
Bill Fisher
  • 29
  • 1
  • 5
0
votes
1 answer

Awk/Sed Solution for English/Chinese Text?

I have a text file. There are hundreds of lines. Each line is either in English or in Chinese characters, but not both (there are a few exceptions but perhaps less than <10, so these are discoverable and manageable). A single line may contain…
user26732
  • 229
  • 3
  • 7
0
votes
1 answer

Getting a character map of any obscure character set/encoding (e.g. ibm-943_P14A-2000)

Recently our software has had an issue with certain obscure kanji (Chinese characters) not being picked up by our Shift-JIS encoding. I made an algorithm to read through any Shift-JIS string to try to find any "out of bounds" Kanji and switch the…
0
votes
1 answer

eZPublish & Twig trans filter : chinese translation

I'm currently working on the translation aspect of an eZPublish5 website which will contain 4 languages : french, english, russian and chinese, with french as original language and locale fallback. Translation of content in backend is working just…
Quentin
  • 61
  • 8
0
votes
1 answer

Generate random strings of Chinese characters in Python

I wrote a small piece of code that searches for a random string of three letters in the App Store: searchTerm = (''.join(random.choice(string.ascii_lowercase) for i in range(3))) …
vandernath
  • 3,665
  • 3
  • 15
  • 24
0
votes
2 answers

Batch chinese(?) symbols change in cmd

Related to this problem: Error code 259 when trying to pair using Bluetooth Command Line Tools I made a simple batch that pairs my bluetooth gamepad with my PC, but unfortunately the gamepads screen name is in chinese(?) and when I run the batch the…
1N07
  • 123
  • 7