Questions tagged [cjk]

CJK stands for Chinese, Japanese and Korean and is used to label issues common to these East Asian languages and their large character repertoires.

CJK stands for Chinese, Japanese, and Korean: East-Asian languages covered by various character sets, including:

  • Big5
  • EUC-JP
  • EUC-KR
  • Shift-JIS
  • GB2312
  • GB18030
  • ISO 2022-JP
  • Unicode
1096 questions
9
votes
1 answer

AS3 Flash - render html via ExternalInterface

This is my first question on Stack Overflow. It's not the first time I wanted to write one, but usually I find a solution using the search bar, this time I didn't. The problem I'm tackling is a little bit complex so I'll try and be as thorough as…
9
votes
4 answers

display chinese character in eclipse console output

I am trying to display some Chinese characters in the GB2312 encoding in the eclipse console. I realize that in Run Dialog -> Common tab -> Console Encoding, I can choose additional encodings other than the default CP1252. However, how I can add…
poiuy
  • 500
  • 5
  • 12
9
votes
3 answers

Why can't I write Chinese characters in nodejs HTTP response?

Here is my little code: var http = require('http'); var port = 9002; var host_ip = ''; http.createServer(function (req, res) { var content = new Buffer("Hello 世界", "utf-8") console.log('request arrived'); res.writeHead(200, { …
Allan Ruin
  • 5,229
  • 7
  • 37
  • 42
8
votes
1 answer

RoR character class regex

I have the following line of code in my Ruby on Rails app, which checks whether the given string contains Korean characters or not: isKorean = !/\p{Hangul}/.match(word).nil? It works perfectly in the console, but raises a syntax error for the…
Arnold
  • 2,390
  • 1
  • 26
  • 45
8
votes
2 answers

How to convert a pinyin string to chinese in C#

I have a touch screen keyboard in my WPF application and I would like to allow the users to write in chinese. I saw that there is an IME in Windows that allows to write in chinese with Pinyin. It works great but I'd like to customize it for my WPF…
Rodrigue Rens
  • 277
  • 3
  • 8
8
votes
3 answers

How to escape Chinese Unicode characters in URL?

I have Chinese users of my PHP web application who enter products into our system. The information the’re entering is for example a product title and price. We would like to use the product title to generate a nice URL slug for those product. Seems…
Jorre
  • 17,273
  • 32
  • 100
  • 145
8
votes
2 answers

How can I get accents (as tone marks) over Chinese characters in LaTeX?

Tone marks above Chinese characters in latex / Combining Accents in unicode My aim is to put tone marks above Chinese characters in latex, and google seems to not be letting on to the answer. Is it possible to use combining accents with chinese…
Twig
  • 621
  • 5
  • 17
8
votes
1 answer

xelatex Invalid fontname

I want to use the openoffice chinese fonts, eg AR PL SungtiL GB, but the xelatex tells me that it is an invalid name (as shown below). It seems like the font name has spaces and so it doesn't recognize it? How should I get around this?…
user176121
  • 710
  • 2
  • 11
  • 22
8
votes
4 answers

Iphone CGContextShowTextAtPoint for Japanese characters

I am working on an app where I am using CGContextShowTextAtPoint to display text to the screen. I want to also display Japanese characters, but CGContextShowTextAtPoint takes as its input a C string. So either A) How do I change Japanese characters…
kiyoshi
  • 837
  • 1
  • 8
  • 20
8
votes
5 answers

How to search all CJK chars in vim?

I can search a CJK char (such as 小) by using a unicode code point: /\%u5c0f /[\u5c0f] I cannot search all of CJK chars by using [\u4E00-\u9FFF], because vim manual says: :help /[] NOTE: The other backslash codes mentioned above do not work…
kev
  • 155,172
  • 47
  • 273
  • 272
8
votes
4 answers

How can I match Korean characters in a Ruby regular expression?

I have some basic validations for usernames using regular expressions, something like [\w-_]+, and I want to add support for Korean alphabet, while still keeping the validation the same. I don't want to allow special characters, such as…
Jakub Arnold
  • 85,596
  • 89
  • 230
  • 327
7
votes
5 answers

Creating PDFs using TCPDF that supports all languages especially CJK

Can someone put together a clear and concise example of how you can create a PDF using TCPDF that will support text strings from any language? It appears there is not a single font that will support all languages. I'm guessing the font would be too…
Matt
  • 925
  • 2
  • 9
  • 19
7
votes
1 answer

Python: How to force a "print" to use __unicode__ instead of __str__, or otherwise naturally "print" the message without explicitly calling unicode()

Basically I just want to be able to create instances using a class called Bottle: eg class Bottle(object):... and then in another module be able to simply "print" any instance without having to hack code to explicitly call a character encoding…
NevilleDNZ
  • 1,269
  • 12
  • 31
7
votes
7 answers

Programming tips with Japanese Language/Characters

I have an idea for a few web apps to write to help me, and maybe others, learn Japanese better since I am studying the language. My problem is the site will be in mostly english, so it needs to mix fluently Japanese Characters, usually hirigana and…
Buddy Lindsey
  • 3,560
  • 6
  • 30
  • 42
7
votes
1 answer

How do decode b"\x95\xc3\x8a\xb0\x8ds\x86\x89\x94\x82\x8a\xba"?

[Summary]: The data grabbed from the file is b"\x95\xc3\x8a\xb0\x8ds\x86\x89\x94\x82\x8a\xba" How to decode these bytes into readable Chinese characters please? ====== I extracted some game scripts from an exe file. The file is packed with Enigma…
Naojiang Hu
  • 73
  • 1
  • 3