mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:27:35 +00:00
MacPDF: Use correct encoding for outline titles
The title of an OutlineItem is already in UTF-8. This is currently done in LibPDF's Parser::parse_string(). I think that's not quite the right place (it shouldn't be done for all strings) and not done quite right (text strings should convert from PDFDocEncoding to UTF-8 unless prefixed by an UTF-8 BOM), but even if that changes, I think we'll keep OutlineItem.title in UTF-8.
This commit is contained in:
parent
148f873321
commit
fac0a456e6
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@
|
|||
{
|
||||
if (_groupName)
|
||||
return _groupName;
|
||||
return [NSString stringWithFormat:@"%s", _item->title.characters()]; // FIXME: encoding?
|
||||
return [NSString stringWithUTF8String:_item->title.characters()];
|
||||
}
|
||||
@end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue