[SERVER-5215] Need mapping from Internationalized Domain Name to UTF-8 Created: 05/Mar/12  Updated: 24/Feb/17  Resolved: 24/Feb/17

Status: Closed
Project: Core Server
Component/s: Networking
Affects Version/s: 2.0.3
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: Barrie Segal Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

MongoDB shell version: 2.0.3-rc2-pre- 
connecting to: 10.14.85.2:4401/test 
> db.serverStatus() 
Fri Mar 02 21:39:46 decode failed. probably invalid utf-8 string [普查西: 
4401] 
Fri Mar 02 21:39:46      why: TypeError: malformed UTF-8 character 
sequence at o 
ffset 0 
Fri Mar 02 21:39:46 Error: invalid utf8 shell/utils.js:925 

the computer name is chinese characters "普查西"



 Comments   
Comment by Eric Milkie [ 24/Feb/17 ]

I tried this in 3.4 and it works now:

> db.serverStatus()
{
        "host" : "普查西",
        "version" : "0.0.0",
        "process" : "mongod",

The replacement of old spidermonkey with V8 and then subsequently back to spidermonkey has probably fixed this issue.

Generated at Thu Feb 08 03:08:13 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.