lukeme / gobible

Automatically exported from code.google.com/p/gobible
1 stars 0 forks source link

Collection names containing accented characters #149

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
If a collection name contains an accented character, the standard output from 
Java is treated as ANSI rather than UTF-8.

Example:

Collection: Volxbibel Röm-Offb
Book: Römer
Book: 1.Korinther
Book: 2.Korinther
Book: Galater
Book: Epheser
Book: Philipper
Book: Kolosser
Book: 1.Thessalonicher
Book: 2.Thessalonicher
Book: 1.Timotheus
Book: 2.Timotheus
Book: Titus
Book: Philemon
Book: Hebräer
Book: Jakobus
Book: 1.Petrus
Book: 2.Petrus
Book: 1.Johannes
Book: 2.Johannes
Book: 3.Johannes
Book: Judas
Book: Offenbarung

Gave standard output (captured in java.log): 

----------------------------------
GoBibleCreator Version: 2.4.1
----------------------------------
Parsing volxbibel.thml...
Parsing volxbibel.thml complete.
Converting volxbibel.thml from ThML format.
D:\Download\Java\GoBibleCreator\GoBibleCreator\GoBibleCreator.241\GoBibleCore\ui
.properties  exists:True
Writing Collection VolxbibelMt-ApgDe: 
Matth_us, Markus, Lukas, Johannes, Apostelgeschichte, 5 book(s) written.
Writing Collection VolxbibelRöm-OffbDe: 
R_mer, 1.Korinther, 2.Korinther, Galater, Epheser, Philipper, Kolosser, 
1.Thessalonicher, 2.Thessalonicher, 1.Timotheus, 2.Timotheus, Titus, Philemon, 
Hebr_er, Jakobus, 1.Petrus, 2.Petrus, 1.Johannes, 2.Johannes, 3.Johannes, 
Judas, Offenbarung, 22 book(s) written.

=====

The collection name VolxbibelRöm-OffbDe contained the character "ö" which is 
treated as ANSI, even though the collections file itself was encoded as UTF-8 
without BOM.

This is probably a quirk of Java SE.

Original issue reported on code.google.com by DFH...@gmail.com on 16 Mar 2011 at 10:00

GoogleCodeExporter commented 8 years ago
This is a quirk of Java SE on Windows. Try 
http://stackoverflow.com/questions/1035388/unicode-output-on-windows-command-lin
e

Original comment by daniel.s...@gmail.com on 14 Jul 2011 at 3:40

GoogleCodeExporter commented 8 years ago
Fair enough.  Thanks for finding explanation.

Original comment by DFH...@gmail.com on 14 Jul 2011 at 3:54

GoogleCodeExporter commented 8 years ago
If you use this method, then it works.

Example Collections.txt (UTF-8 without BOM):

Source-Text: Russian.thm
Book-Name-Map: Matthew, От Матфея
Book-Name-Map: Mark, От Марка
Book-Name-Map: Luke, От Луки
Book-Name-Map: John, От Иоанна
Book-Name-Map: Acts, Деяния
Book-Name-Map: James, Иакова
Book-Name-Map: 1 Peter, 1-е Петра
Book-Name-Map: 2 Peter, 2-е Петра
Book-Name-Map: 1 John, 1-е Иоанна
Book-Name-Map: 2 John, 2-е Иоанна
Book-Name-Map: 3 John, 3-е Иоанна
Book-Name-Map: Jude, Иуды
Book-Name-Map: Romans, К Римлянам
Book-Name-Map: 1 Corinthians, 1-е Коринфянам
Book-Name-Map: 2 Corinthians, 2-е Коринфянам
Book-Name-Map: Galatians, К Галатам
Book-Name-Map: Ephesians, К Ефесянам
Book-Name-Map: Philippians, К Филиппийцам
Book-Name-Map: Colossians, К Колоссянам
Book-Name-Map: 1 Thessalonians, 1-е Фессалоникийцам
Book-Name-Map: 2 Thessalonians, 2-е Фессалоникийцам
Book-Name-Map: 1 Timothy, 1-е Тимофею
Book-Name-Map: 2 Timothy, 2-е Тимофею
Book-Name-Map: Titus, К Титу
Book-Name-Map: Philemon, К Филимону
Book-Name-Map: Hebrews, К Евреям
Book-Name-Map: Revelation, Откровение
Collection: Russian NT
Book: Matthew
Book: Mark
Book: Luke
Book: John
Book: Acts
Book: James
Book: 1 Peter
Book: 2 Peter
Book: 1 John
Book: 2 John
Book: 3 John
Book: Jude
Book: Romans
Book: 1 Corinthians
Book: 2 Corinthians
Book: Galatians
Book: Ephesians
Book: Philippians
Book: Colossians
Book: 1 Thessalonians
Book: 2 Thessalonians
Book: 1 Timothy
Book: 2 Timothy
Book: Titus
Book: Philemon
Book: Hebrews
Book: Revelation

Original comment by lastavtc...@gmail.com on 2 Feb 2012 at 2:53

Attachments: