[JAVA-1057] Saving Chinese becomes unreadable string Created: 04/Dec/13 Updated: 10/Apr/14 Resolved: 30/Dec/13 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | API |
| Affects Version/s: | 2.11.3 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | James Lee | Assignee: | Unassigned |
| Resolution: | Cannot Reproduce | Votes: | 0 |
| Labels: | driver | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Mac OSX 10.9, MongoDB 2.4.8, java driver 2.11.3 |
||
| Attachments: |
|
| Description |
|
read string from a file, the string is readable, I tried to use mongo command line to save Chinese, everything is fine. |
| Comments |
| Comment by Jeffrey Yemin [ 30/Dec/13 ] | |||||||||||||||||||||
|
As I have not heard back from you in a while, I'm closing this issue, but please feel free to re-open if you still think there is a bug. | |||||||||||||||||||||
| Comment by Jeffrey Yemin [ 05/Dec/13 ] | |||||||||||||||||||||
|
It works fine for me:
Did you remember to set the character set properly when reading in the file? | |||||||||||||||||||||
| Comment by James Lee [ 05/Dec/13 ] | |||||||||||||||||||||
|
file that contains Chinese string | |||||||||||||||||||||
| Comment by James Lee [ 05/Dec/13 ] | |||||||||||||||||||||
|
Sorry, seems the jira website could convert that string to a readable string. for test case, I uploaded a file, that contains the Chinese string. | |||||||||||||||||||||
| Comment by Jeffrey Yemin [ 05/Dec/13 ] | |||||||||||||||||||||
|
Can you provide a test case so that we can try to reproduce it? |