Вот как я могу получить китайский выход в cmd.exe
, работающий на Windows 7 Pro English Version. Я также пробовал имена файлов на японском, русском и польском языках, и все они выглядят корректно. Входы также работают, по крайней мере, когда я пытался сделать dir xxx*
, содержащие символы без ascii.
cmd.exe
(и другие оболочки) HKEY_CURRENT_USER\Console\Console2 command window
в реестре. Импортируйте следующие данные в реестр Windows: Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Console\Console2 command window]
"CodePage"=dword:000003a8
"FontSize"=dword:000a0000
"FontFamily"=dword:00000036
"FontWeight"=dword:00000190
"FaceName"="細明體"
"HistoryNoDup"=dword:00000000
@NimSum
, и китайские символы вышли вращением на 90 градусов. Затем я переключился на NimSum
(без @), и он вышел правильно. Тогда просто из любопытства я переключился на Consola
, и все же я все еще вижу китайских иероглифов. Поэтому я не уверен, действительно ли вам нужно установить шрифт или нет. С помощью Jason Desrosiers я наконец нашел решение и для моего вложенного json.
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"required": [
"apiVersion",
"apiDate"
],
"anyOf": [
{
"properties": {
"general": {
"properties": {
"documentType": { "enum": ["invoice"] },
"references": {
"required": ["invoiceId", "invoiceDate"]
}
}
}
}
},
{
"properties": {
"general": {
"properties": {
"documentType": { "enum": ["creditNote"] },
"references": {
"required": ["creditNoteId", "creditNoteDate"]
}
}
}
}
}
],
"properties": {
"apiVersion": {
"type": "string",
"description": "The version of the json file"
},
"apiDate": {
"type": "string",
"description": "The date when the json version was published"
},
"general": {
"$ref": "#/definitions/general_identifiers",
"references": {
"type": "object",
"properties": {
"invoiceId": {
"type": "string"
},
"invoiceDate": {
"type": "string"
},
"creditNoteId": {
"type": "string"
},
"creditNoteDate": {
"type": "string"
}
}
}
}
},
"definitions" : {
"general_identifiers" : {
"type": "object",
"required": [
"documentType"
],
"properties": {
"documentType": {
"enum": [
"invoice",
"creditNote"
]
}
}
}
}
}