Closed
Bug 1476527
Opened 7 years ago
Closed 7 years ago
Mojibake Unicode(Japanese Kanji/Hiragana etc ) text when Address book import from csv using en-US version of TB
Categories
(Thunderbird :: Address Book, defect)
Tracking
(thunderbird_esr52 unaffected, thunderbird_esr60 affected, thunderbird60 wontfix, thunderbird61 wontfix, thunderbird62 affected, thunderbird63 affected)
RESOLVED
WONTFIX
People
(Reporter: alice0775, Unassigned)
References
Details
(Keywords: regression)
Attachments
(2 files)
I find a Bug when I test Bug 1476520.
I wanted to transfer an address book from one profile to the other using a CSV file. So I exported it from TB52 and imported it to Tb60.0b10.
Unicode(Japanese Kanji/Hiragana etc ) will Mojibake, see attachment.
| Reporter | ||
Comment 1•7 years ago
|
||
sample csv which is exported from Tb 52.9.1
| Reporter | ||
Comment 2•7 years ago
|
||
Regression window:
https://hg.mozilla.org/comm-central/pushloghtml?fromchange=a400770aa52773348935dc6a638ae7caa64eb882&tochange=0b0cba8d70bd35997965afe4c02010c49e402980
https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=ce1a86d3b4db161c95d1147676bbed839d7a4732&tochange=d49501f258b105c5e2dcd0a59896ec1ceabf726b
Suspect: 09475dacd05 Jorg K — Bug 1410850 - Port bug 1410288 to mailnews: Convert wstring attributes to AString in nsIPrintProgressParams.idl. rs=bustage-fix
Blocks: 1410850
Comment 3•7 years ago
|
||
Thanks Alice, that would be bug 1381762.
| Reporter | ||
Comment 4•7 years ago
|
||
The problem is character encoring of the exported csv file.
Tb exported the csv file as Shift_JIS on windows.
Auto-detection character encoring of the file seems to fail when import it?
After converting character encoring of the csv file from Shift_JIS to UTF-8, then, importing is successfully performed.
Comment 5•7 years ago
|
||
(In reply to Alice0775 White from comment #4)
> Auto-detection character encoring of the file seems to fail when import it?
Alice thanks as always for you help and your comments. There was never an auto-detection, we used the system charset:
https://hg.mozilla.org/comm-central/rev/0b0cba8d70bd#l1.32
Sadly M-C removed nsIPlatformCharset, so we had to switch to a "cheap" replacement which was already criticised in bug 1381762 comment #6: "mozilla::dom::FallbackEncoding is unlikely to be the right answer".
Masatoshi-san, can you help with a good idea here?
status-thunderbird_esr60:
--- → affected
Flags: needinfo?(VYV03354)
Comment 6•7 years ago
|
||
I think importing fails because the TB 60 locale is English.
Comment 7•7 years ago
|
||
Thanks. In this case, try a Japanese version from here:
https://archive.mozilla.org/pub/thunderbird/candidates/60.0-candidates/build2/
Comment 8•7 years ago
|
||
TB 60 Japanese imported a Shift_JIS CSV correctly for me. Could you double-check?
Flags: needinfo?(VYV03354) → needinfo?(alice0775)
| Reporter | ||
Comment 9•7 years ago
|
||
(In reply to Masatoshi Kimura [:emk] from comment #8)
> TB 60 Japanese imported a Shift_JIS CSV correctly for me. Could you
> double-check?
Yes, TB 60.0b10 ja build works as expected.
Flags: needinfo?(alice0775)
Comment 10•7 years ago
|
||
So do we close this bug?
Summary: Mojibake Unicode(Japanese Kanji/Hiragana etc ) text when Address book import from csv → Mojibake Unicode(Japanese Kanji/Hiragana etc ) text when Address book import from csv using en-US version of TB
Updated•7 years ago
|
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•