chinese

how to control charset of directory listing via .htaccess?

Hi all, I've enabled directory listing of a folder under public_html, by adding: Options +Indexes in the .htaccess file. However, some files are not listed correctly by default, as some filenames are in Chinese (UTF-8 encoded). I can see the filenames if the change the browser's charset encoding to UTF-8. How can I let the browser ...

How to correctly parse a mixed latin/ideographic full text query with regex?

I'm trying to sanitize/format some input using regex for a mixed latin/ideographic(chinese/japanse/korean) full text search. I found an old example of someone's attempt at sanitizing a latin/asian language string on a forum of which I cannot find again (full credit to the original author of this code). I am having trouble fully underst...

How to Make Emacs Display Chinese Characters

I often use simple Chinese phrases like "你好" to test that my code can handle non-ascii characters. Whenever I enter Chinese characters directly into Emacs, they just come out as question marks. Emacs can sometimes display characters properly if I open a premade text file but not always. For example, if I create a simple text file in No...

Internationalize Swing Applet Menu Items in English and Chinese - Examples?

A Java Swing applet needs to display its MenuItems in Chinese or English, depending on how a user has set their system preferences. Has anybody seen compilable examples showing how to do this? I've seen a few articles on the subject of i18n and Java/Swing (for example, this one), but so far I haven't found anything specific to the subj...

Problem with DBCC CHECKIDENT with Chinese characters in table name

I'm maintaining an application that uses SQL Server Express 2005 as the back end. The application allows users to create new databases and provide the name for the new database. When the app is loading the default data I make the following SQL call: DBCC CHECKIDENT('[myDB].[CsSchema].[CsMyDataType]', RESEED) WITH NO_INFOMSGS The cod...

C# - Automatically switch between two different IME in the same keyboard layout

I did an application to enter chinese pinyin and hanzi in a database. That means that the operator have to switch constantly between "Pinyinput" and "sogou input" with ctrl+shift There is a way to make the IME change automaticall when a textbox is selected? I mean, not switch the keyboard layout, just the input method of the same keyboar...

Convert numbered to accentuated Pinyin?

Given a source text like nin2 hao3 ma (which is a typical way to write ASCII Pinyin, without proper accentuated characters) and given a (UTF8) conversion table like a1;ā e1;ē i1;ī o1;ō u1;ū ü1;ǖ A1;Ā E1;Ē ... how would I convert the source text into nín hǎo ma ? For what it's worth I'm using PHP, and this might be a regex I'm l...

php, search in chinese and russian

Eventually, I'm creating a website on three languages: english, russian and chinese. I hope that if I use UTF-8 in application and database, there won't be any problems with input-output (will there?) But the most frightening part of it is a search. It should be cool enough. It should be full-text, it should index, etc. I hope it will u...

How to retrieve keystroke/character mapping table from Microsoft IME program?

Hi, I want to know how to retrieve the character mapping table from ms IME? When the user key in "gao xing", ms IME will display 高兴 in Chinese. What I want to achieve is the other way round; when user key in 高兴, the program will convert it to "gao xing". In order to do that, I need a database / mapping table for this. And I guess MS ...

Displaying Chinese text in an Applet

We have an Applet that can possibly display Chinese text. We are specifying a font for it (Arial), it works fine under both Windows and Mac OSX. But in Firefox on Linux the Chinese characters are rendered as squares. Is there a way to work around this? Note that we can't assume the existence of a particular font file on the client. ...

Oracle SQL load table columns having special characters

I am loading / inserting data into oracle table , in case of special characters like chinese language characters, i am getting an error like row rejected because maximum size of column was exceeded, i am not getting this error for rows which have english characters which appear to be of same length for same column. I am using SUBSTR and ...

chinese search form in flash

hey!! i'm working on a menu with a search field, all this menu is done in flash, on the english side works perfect, you write "dah" and it searches for "dah" but on chinese, you write "餅" it posts "??" instead the characters that i want to search for. I changed the encodig, but it just got things worst, i just can write squares if i ch...

MySQL: SELECT statement with Chinese and Japanese characters (empty result?)

I'm trying to query my database to get some results in Chinese and Japanese languages as follows: $str = '日本'; $get_character = mysql_fetch_array (mysql_query("SELECT id FROM `mytable` WHERE ch = '$str'")); print $get_character[0]; The problem is it returns me nothing. For testing purpose I've changed 日本 in database to test and I do ...

Inserting Chinese Meta Tags

Hi, I have a multilingual site and I am having a problem inserting Chinese meta tags. These are transformed into question marks. Is there a way how I can achieve this? Many thanks --EDIT-- The table storing the SEF Urls is in the latin1_swedish_ci character set. How can I change this single table to utf8_general_ci without breaking ...

Detect chinese (multibyte) character in a string in a column in oracle database

how can i detect that a column in oracle database has chinese (multibyte) characters in it. ...

Chinese character in Url problem with Java

I cut and pasted the following line in to my Firefox url field : http://www.baidu.com/s?wd=你 This line was generated by my Java program. The last Chinese char in the Firefox field sometimes became : %C4%E3 [ Correct ] Other times it became this : %E4%BD%A0 [ Incorrect ] I tried to cut and paste the url into IE. In the url field it ...

iPhone - Chinese and Japanese in UITextField

I wanna make sure some code I've written works good with Chinese and Japanese characters. I tried changing the iPhone Simulator language to Chinese and Japanese, but it doesn't look like the character set for the UITextFields change. How do you do that? ...

useragents are removed by chinese mobile networks ?

Hi, Kindly confirm the information below. a. Chinese mobile networks are blocking the useragent strings. b. The useragent send to the server are in different encoding for Chinese mobiles. Please let me know whether a or b is true and also pour in your experiences on the identifying the user agents in Chinese mobiles. Everywhere t...

Google AJAX Language API with Chinese language

Hey guys! Does anyone know if there is support for Chinese pinyin? I get the results here with correct Chinese pinyin (see "Show romanization" link). Thank you. ...

How to output chinese charactes from SQL database correctly in VB.NET

I have a nvarchar(256) field in a SQL 2005 database table that contains several records in Chinese and I'd like to output this characters correctly in VB.NET code. What I have now doesn't work at all: Dim MyText As String = "推荐评论: 属于那~种类型的电影" Dim value As [String] = MyText Dim tc As Encoding = Encoding.GetEncoding(950) Dim bytes As Byt...