bug-lilypond
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

\displayMusic and UTF-8


From: Malte Meyn
Subject: \displayMusic and UTF-8
Date: Sun, 24 Apr 2016 11:31:31 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0

Hi list,

attached you find a file that tries to \displayMusic a string containing the apostrophe ’ (U+2019). Everything fine with this file says my hexeditor. But not with lilypond’s output which you find in the attached file displayMusic_utf8_output.txt.

The apostrophe from the source (displayMusic_utf8.ly):
E2 80 99 = U+2019
The ‘apostrophe’ from the output:
E2 5C 78 38 30 99 = garbage, 5C is not a valid UTF-8 continuation byte.

The substring 5C 78 38 30 is ASCII/UTF-8 for \x80 so it’s not completely random ;)

Malte

Attachment: displayMusic_utf8.ly
Description: Text Data

Attachment: displayMusic_utf8_output.txt
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]