![](https://secure.gravatar.com/avatar/12b7e9a3ab6d2a0e0602000f7e6542bf.jpg?s=120&d=mm&r=g)
Hi, This is probably a really basic question already asked many times, but I wasn't able to find an answer. How to type an unicode character using its number? Searching for messages, I found things like: "2019 \char"2019 \char{"2019} \utfchar{"2019} but I wasn't able to get any of them to work. (I don't know for sure they actually should do what I want.) 'texexec --version' says: TeXExec | version 6.2.0 - 1997-2006 - PRAGMA ADE/POD Thanks, Maurício
![](https://secure.gravatar.com/avatar/50cc0f5ecf9d742f9ca51daa589e66d0.jpg?s=120&d=mm&r=g)
You may try \uchar{"20}{"19}. On Thu, Feb 19, 2009 at 09:48:50PM -0300, Maur憝cio wrote:
Hi,
This is probably a really basic question already asked many times, but I wasn't able to find an answer.
How to type an unicode character using its number? Searching for messages, I found things like:
"2019 \char"2019 \char{"2019} \utfchar{"2019}
but I wasn't able to get any of them to work. (I don't know for sure they actually should do what I want.)
'texexec --version' says:
TeXExec | version 6.2.0 - 1997-2006 - PRAGMA ADE/POD
Thanks, Maur韈io
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
--
Longmin Wang
![](https://secure.gravatar.com/avatar/c4878ac5197a09aa6f93edc1377599eb.jpg?s=120&d=mm&r=g)
Hi,
try this: \getglyph{name:TeXGyreHeros-Regular}{\char"2013} % your font should have the glyph!
If you are in linux and your editor is UTF8 capable, try pressing keys
Hi,
This is probably a really basic question already asked many times, but I wasn't able to find an answer.
How to type an unicode character using its number? Searching for messages, I found things like:
"2019 \char"2019 \char{"2019} \utfchar{"2019}
but I wasn't able to get any of them to work. (I don't know for sure they actually should do what I want.)
'texexec --version' says:
TeXExec | version 6.2.0 - 1997-2006 - PRAGMA ADE/POD
Thanks, Maurício
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
Maurício wrote:
Hi,
This is probably a really basic question already asked many times, but I wasn't able to find an answer.
How to type an unicode character using its number? Searching for messages, I found things like:
\char"2019
that one is pretty safe in mkiv make sure to end witha space or \relax ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (4)
-
Hans Hagen
-
Longmin Wang
-
Maurício
-
zs