Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(175)

Issue 2648703003: Pass more hints to encoding detector. (Closed)

Created:
3 years, 11 months ago by tkent
Modified:
3 years, 11 months ago
Reviewers:
Jinsuk Kim
CC:
blink-reviews, blink-reviews-html_chromium.org, chromium-reviews, dglazkov+blink, gavinp+loader_chromium.org, Nate Chapin, kinuko+watch, loading-reviews+parser_chromium.org, loading-reviews_chromium.org, tyoshino+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Pass 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)
tkent
jinsukkim@, would you review this please?
3 years, 11 months ago (2017-01-20 07:58:03 UTC) #22
Jinsuk Kim
Thanks a lot for taking care of this! https://codereview.chromium.org/2648703003/diff/80001/third_party/WebKit/Source/platform/text/TextEncodingDetector.cpp File third_party/WebKit/Source/platform/text/TextEncodingDetector.cpp (right): https://codereview.chromium.org/2648703003/diff/80001/third_party/WebKit/Source/platform/text/TextEncodingDetector.cpp#newcode45 third_party/WebKit/Source/platform/text/TextEncodingDetector.cpp:45: Language ...
3 years, 11 months ago (2017-01-20 21:50:47 UTC) #25
tkent
https://codereview.chromium.org/2648703003/diff/80001/third_party/WebKit/Source/platform/text/TextEncodingDetector.cpp File third_party/WebKit/Source/platform/text/TextEncodingDetector.cpp (right): https://codereview.chromium.org/2648703003/diff/80001/third_party/WebKit/Source/platform/text/TextEncodingDetector.cpp#newcode45 third_party/WebKit/Source/platform/text/TextEncodingDetector.cpp:45: Language language = UNKNOWN_LANGUAGE; On 2017/01/20 at 21:50:47, Jinsuk ...
3 years, 11 months ago (2017-01-23 00:02:57 UTC) #28
Jinsuk Kim
Thanks! lgtm.
3 years, 11 months ago (2017-01-23 00:08:23 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2648703003/100001
3 years, 11 months ago (2017-01-23 03:15:53 UTC) #33
commit-bot: I haz the power
3 years, 11 months ago (2017-01-23 03:20:30 UTC) #36
Message was sent while issue was closed.
Committed patchset #2 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/269b6bc66eb96f69d61d814ea7ec...

Powered by Google App Engine
This is Rietveld 408576698