0

Whenever I try to convert html text which contains the trademark sign into LaTex, the trademark sign gets converted into "â„¢".

I convert a xml file to html and afterwards to latex.That's how the xml line with the trademark sign looks like:

Abbreviation="Test™"

It's converted correctly in the html file.

I tried adding these lines into my preamble file

\usepackage[utf8x]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}

but without success. It still gets converted into "â„¢"

I use pandoc to convert the html files into LaTex files.

Thanks in advance

4
  • Can't reproduce your issue, everything works as expected (i.e. the output is Abbreviation="Test™"). Which version of pandoc are you using, did you modify the template?
    – DG'
    Commented Sep 28, 2018 at 12:04
  • 1
    You don't explicitly say how you convert from xml to html, do you also use pandoc for that?
    – Marijn
    Commented Sep 28, 2018 at 12:08
  • 1
    Please provide a minimal working example (MWE)
    – DG'
    Commented Sep 28, 2018 at 12:14
  • 1
    The problem seems to be somewhere in your workflow: ™ appears to be converted correctly to in UTF-8, which in turn is interpreted as Windows-1252 (or ISO 8859-1), hence the â„¢. But without code this is just elaborate guesswork.
    – DG'
    Commented Sep 28, 2018 at 14:16

1 Answer 1

0

Thanks to DG's comment about the workflow I managed to find the problem:

I had a powershell script which replaced some lines in the .tex files and it messed the encoding up.

1
  • Your answer should be downvoted, because of the missing MWE! I can't guess, how an MWE should look like, to get an trademarksign.
    – Jan
    Commented Dec 8, 2019 at 13:51

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .