pattersonkl / google-refine

Automatically exported from code.google.com/p/google-refine
0 stars 0 forks source link

strange character while create new project with a chinese poject name #276

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.select a data file
2.change the project name to 你好
3.click Create Project

What is the expected output? What do you see instead?
the project is 浣犲ソ instead of 你好

What version of the product are you using? On what operating system?
Version 2.0 [r1836],Windows 7,Chrome 8.0.552.215

Please provide any additional information below.

Original issue reported on code.google.com by pxb1...@gmail.com on 10 Dec 2010 at 8:58

GoogleCodeExporter commented 8 years ago
The workaround seems to be create a project with random English name and rename 
it to 你好

Original comment by dong.ji...@gmail.com on 10 Dec 2010 at 2:55

GoogleCodeExporter commented 8 years ago
I tested this using the current SVN code on Ubuntu 10.4 LTS with Chrome 
9.0.597.16 dev and got 你好 so the problem is either platform specific or 
it's already been fixed.

Original comment by tfmorris on 12 Dec 2010 at 7:01

GoogleCodeExporter commented 8 years ago
I went back and tested with Refine 2.0 using the same Ubuntu/Chrome 
configuration and wasn't able to reproduce the problem with the released 
version, so I don't think anything has changed in the code.  It must be 
something related to operating system, browser, or locale differences.

Original comment by tfmorris on 9 Jan 2011 at 4:28

GoogleCodeExporter commented 8 years ago
My win7 local is zh_cn and char encoding is gbk,
I modified the CreateProjectCommand and it works for me.

Thanks tfmorris

Original comment by pxb1...@gmail.com on 10 Jan 2011 at 2:37

Attachments:

GoogleCodeExporter commented 8 years ago
I've applied a slightly modified version of the patch which preserves the 
request encoding if it has one, but sets it to utf-8 if there is none.

Can you test what's in SVN now?

Original comment by tfmorris on 4 Feb 2011 at 3:18

GoogleCodeExporter commented 8 years ago
I tested the trunk (r2003), and it's ok now.

Original comment by pxb1...@gmail.com on 8 Feb 2011 at 3:13

GoogleCodeExporter commented 8 years ago
Thanks very much for testing (and for the patch!).

Original comment by tfmorris on 8 Feb 2011 at 3:23

GoogleCodeExporter commented 8 years ago

Original comment by tfmorris on 9 Jun 2011 at 7:58