Chromium Code Reviews
DescriptionPass more hints to encoding detector.
http://chart.fisco.co.jp/fisco/cgi-bin/index.cgi was incorrectly detected as GBK
though it should be EUC-JP. Passing URL or user language "ja" fixes this issue.
* Add |hintUrl| and |hintUserLanguage| arguments to detectTextEncoding().
* TextResourceDecoder passes defaultLanguage() to detectTextEncoding().
* TextResourceDecoderBuilder passes URL information to TextResourceDecoder, and
TextResourceDecoder passes it to detectTextEncoding().
BUG=682978
Review-Url: https://codereview.chromium.org/2648703003
Cr-Commit-Position: refs/heads/master@{#445317}
Committed: https://chromium.googlesource.com/chromium/src/+/269b6bc66eb96f69d61d814ea7ec1ffef695eee3
Patch Set 1 : _ #
Total comments: 6
Patch Set 2 : Follow comments #
Messages
Total messages: 36 (30 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||