You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`<?php
error_reporting(-1);
ini_set('display_errors', 'on');
require DIR . '/vendor/autoload.php';
use RtfHtmlPhp\Document;
use RtfHtmlPhp\Html\HtmlFormatter;
$original = "{\rtf1\ansi\ansicpg1252\deff0{\fonttbl{\f0\fnil\fcharset0 Microsoft Sans Serif;}}\viewkind4\uc1\pard\lang1036\f0\fs16 m'e9lange ma'efs fran'e7ais\par}";
$document = new Document($original); // or use a string directly
$formatter = new HtmlFormatter('UTF-8');
$r = $formatter->Format($document);
file_put_contents('rtf.html', $r);
echo $r;
?>`
Result:
tf1onttbl0nilcharset0 Microsoft Sans Serif;�iewkind40s16 mélange maïs français
Expected result:
Something like "Mélange maïs français"
Thanks,
The text was updated successfully, but these errors were encountered:
RTF Translation is wrong in this case:
`<?php
error_reporting(-1);
ini_set('display_errors', 'on');
require DIR . '/vendor/autoload.php';
use RtfHtmlPhp\Document;
use RtfHtmlPhp\Html\HtmlFormatter;
$original = "{\rtf1\ansi\ansicpg1252\deff0{\fonttbl{\f0\fnil\fcharset0 Microsoft Sans Serif;}}\viewkind4\uc1\pard\lang1036\f0\fs16 m'e9lange ma'efs fran'e7ais\par}";
$document = new Document($original); // or use a string directly
$formatter = new HtmlFormatter('UTF-8');
$r = $formatter->Format($document);
file_put_contents('rtf.html', $r);
echo $r;
?>`
Result:
tf1onttbl0nilcharset0 Microsoft Sans Serif;�iewkind40s16 mélange maïs français
Expected result:
Something like "Mélange maïs français"
Thanks,
The text was updated successfully, but these errors were encountered: