Windows console message from utf-8 source
Dear list, I have the following minimal example: \starttext \message{En español usamos acentuación} \stoptext Saved as utf-8, Linux displays the message fine. (I guess MacOS X would do the same.) The problem is the standard console in Windows. It requires IBM codepage 850 exclusively. (Or at least, I don’t know how to display utf-8 strings.) Is there any way to display the content of the \message above as cp850 from a utf-8 source? Many thanks for your help, Pablo -- http://www.ousia.tk
On Mon, Apr 27, 2015 at 6:29 PM, Pablo Rodriguez
Dear list,
I have the following minimal example:
\starttext \message{En español usamos acentuación} \stoptext
Saved as utf-8, Linux displays the message fine. (I guess MacOS X would do the same.)
The problem is the standard console in Windows. It requires IBM codepage 850 exclusively. (Or at least, I don’t know how to display utf-8 strings.)
Is there any way to display the content of the \message above as cp850 from a utf-8 source?
Many thanks for your help,
What happen when you use Lucida Console as font ?
-- luigi
On 04/27/2015 07:48 PM, luigi scarso wrote:
On Mon, Apr 27, 2015 at 6:29 PM, Pablo Rodriguez wrote: [...] Is there any way to display the content of the \message above as cp850 from a utf-8 source?
What happen when you use Lucida Console as font ?
Many thanks for your help, Luigi. As far as I remember, I use Lucida Console as font? (I will have to check it tomorrow.) Pablo -- http://www.ousia.tk
On 4/27/2015 7:48 PM, luigi scarso wrote:
On Mon, Apr 27, 2015 at 6:29 PM, Pablo Rodriguez
mailto:oinos@gmx.es> wrote: Dear list,
I have the following minimal example:
\starttext \message{En español usamos acentuación} \stoptext
Saved as utf-8, Linux displays the message fine. (I guess MacOS X would do the same.)
The problem is the standard console in Windows. It requires IBM codepage 850 exclusively. (Or at least, I don’t know how to display utf-8 strings.)
Is there any way to display the content of the \message above as cp850 from a utf-8 source?
Many thanks for your help,
What happen when you use Lucida Console as font ?
https://code.google.com/p/conemu-maximus5/wiki/CheckUnicode ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On 4/27/2015 6:29 PM, Pablo Rodriguez wrote:
Dear list,
I have the following minimal example:
\starttext \message{En español usamos acentuación} \stoptext
Saved as utf-8, Linux displays the message fine. (I guess MacOS X would do the same.)
The problem is the standard console in Windows. It requires IBM codepage 850 exclusively. (Or at least, I don’t know how to display utf-8 strings.)
Is there any way to display the content of the \message above as cp850 from a utf-8 source?
choose a font that has the glyphs and run chcp 65001 ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On 04/27/2015 08:09 PM, Hans Hagen wrote:
On 4/27/2015 6:29 PM, Pablo Rodriguez wrote:
[...] Is there any way to display the content of the \message above as cp850 from a utf-8 source?
choose a font that has the glyphs and run
chcp 65001
Many thanks for your reply, Hans. I thought chcp didn’t allow utf-8, because Microsoft doesn’t mention it (https://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en...). Many thanks for your help, Pablo -- http://www.ousia.tk
On 04/27/2015 08:09 PM, Hans Hagen wrote:
On 4/27/2015 6:29 PM, Pablo Rodriguez wrote:
[...] Is there any way to display the content of the \message above as cp850 from a utf-8 source?
choose a font that has the glyphs and run
chcp 65001
Hans, following your instructions, I experience a weird issue (Win7 64bit). Here is the minimal sample: \starttext \writestatus{Español}{con acentuación} \message{En español usamos acentuación} \stoptext Text from \writestatus is displayed right as utf-8. But text from \message isn’t displayed right. Is this a bug or am I missing something? Many thanks for your help, Pablo -- http://www.ousia.tk
participants (3)
-
Hans Hagen
-
luigi scarso
-
Pablo Rodriguez