2
我有一個elasticsearch settings.yml文件中,需要inlcude此:Ruby的YAML無法讀取的unicode
char_filter:
arabic_normalization_extra:
type: mapping
mappings: [ "\x{670}=>ا", "ٰ=>ا", "ٱ=>ا", "آ=>ا", "ٖ=>ا" ]
紅寶石拋出一個錯誤,並且是非常不滿的:
Psych::SyntaxError: (<unknown>): did not find expected hexdecimal number while parsing a quoted scalar at line 9 column 28
哪有我解決了這個問題?
謝謝!
錯誤仍然存在 – 2014-11-06 08:59:31
這是引起不快樂的引號 – 2014-11-06 09:00:01
我改進了我的答案以解釋錯誤 – 2014-11-06 09:10:07