Open rjoberon opened 7 years ago
Note that I have inserted the \366 here manually as my browser converted it to the letter "ö" - hexdump -C test.pdfpc shows that this is latin1:
73 63 68 f6 6e 0a
- this looks like UTF8 to me:
I tried your example tex file and it works fine in pdfpc for me.
Okay, seems my knowledge about encoding is a bit limited, c3b6
is listed as the UTF-8 encoding for ö
https://unicode-table.com/en/search/?q=U%2B00f6, still, opening the file in my text editor showed it as "UTF-8 encoded".
Here is my version of pdflatex
:
$ pdflatex --version
pdfTeX 3.14159265-2.6-1.40.15 (TeX Live 2015/dev/Debian)
kpathsea version 6.2.1dev
Copyright 2014 Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
There is NO warranty. Redistribution of this software is
covered by the terms of both the pdfTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the pdfTeX source.
Primary author of pdfTeX: Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
Compiled with libpng 1.6.13; using libpng 1.6.13
Compiled with zlib 1.2.8; using zlib 1.2.8
Compiled with poppler version 0.26.5
it produces the correct UTF8 encoding:
$ hexdump -C out/test.pdfpc
00000000 5b 6e 6f 74 65 73 5d 0a 23 23 23 20 31 0a 2d 20 |[notes].### 1.- |
00000010 73 63 68 c3 b6 6e 0a |sch..n.|
00000017
True, with the latest version this works indeed (and also with the version from October 2013. This version causes the problem. It seems I got lost in all the different versions I have tried. Thus, the issue remains relevant for pull request #15 only. (The improved overlay handling in Xaf's fork is crucial for me, though.)
In combination with pdflatex and
\usepackage[T1]{fontenc}
utf-8 characters in notes are converted to latin1 which is a problem for pdfpc.With this input (
test.tex
):the following output (
test.pdfpc
) is produced:Note that I have inserted the \366 here manually as my browser converted it to the letter "ö" -
hexdump -C test.pdfpc
shows that this is latin1:With this file pdfpc does not show any notes.
After
recode latin1..utf8 test.pdfpc
this is indeed utf-8:And pdfpc correctly shows "schön" as a note.
Note that
\usepackage[T1]{fontenc}
has an influence on that. Removing that line fromtest.tex
, results in the followingtest.pdfpc
:... which does not work with pdfpc either. ;-)
This happens with the following version of
pdflatex
:My current workaround is to (automatically) call
recode
after each run ofpdflatex
... so it's not a big problem.