Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Non ASCII characters with write-host

269 views
Skip to first unread message

Peter Monadjemi

unread,
Feb 5, 2007, 1:13:45 PM2/5/07
to
When using write-host with non ascii characters (the German Umlaute)
they won't display - is this a problem with PowerShell or the console
itself?

like Write-Host Schlüssel...

I couldn't find anything in the PowerShell help files


Thanks,
Peter

RichS

unread,
Feb 5, 2007, 1:57:00 PM2/5/07
to
On my XP machine and on a Windows 2003 machine it works OK

PS> Write-Host Schlüssel
Schlüssel
PS>

What are you using?
--
Richard Siddaway
Please note that all scripts are supplied "as is" and with no warranty
Blog: http://richardsiddaway.spaces.live.com/
PowerShell User Group: http://www.get-psuguk.org.uk

/\/\o\/\/ [MVP]

unread,
Feb 5, 2007, 2:04:13 PM2/5/07
to
same here on Vista ( not using localized version of PowerShell, or Windows)

PoSH> Write-Host Schlüssel
Schlüssel

greetings /\/\o\/\/

"RichS" <Ri...@discussions.microsoft.com> wrote in message
news:3701224B-EEE3-4BE4...@microsoft.com...

Brandon Shell

unread,
Feb 5, 2007, 2:11:21 PM2/5/07
to
Didn't want to be left out: (Vista RTM) all English all the time :)

1> Write-Host Schlüssel
Schlüssel
[C:\Users\Me]
2>cl

Win2k3 SP1


PS > Write-Host Schlüssel
Schlüssel
PS >

Seems you have a bug.

--
Brandon Shell
---------------
Stop by my blog some time :)
http://www.bsonposh.com/
Try the "Search of Powershell Blogs"
--------------------------------------

"/\/\o\/\/ [MVP]" <mow...@hotmail.NoSpam> wrote in message
news:BCD19E39-DC42-48F7...@microsoft.com...

Vasily Gusev

unread,
Feb 5, 2007, 2:18:17 PM2/5/07
to
Try to change console font to TrueType one, Lucida Console for example.

--
Gusev Vasily, AKA Xaegr
MCP, MCSA
http://xaegr.livejournal.com


"Peter Monadjemi" <mona...@t-online.de> wrote in message
news:%23Ju35FV...@TK2MSFTNGP06.phx.gbl...

RichS

unread,
Feb 5, 2007, 3:01:01 PM2/5/07
to
I tried it with TrueType and raster fonts and it works with both

--
Richard Siddaway
Please note that all scripts are supplied "as is" and with no warranty
Blog: http://richardsiddaway.spaces.live.com/
PowerShell User Group: http://www.get-psuguk.org.uk


"Vasily Gusev" wrote:

> Try to change console font to TrueType one, Lucida Console for example.
>
> --
> Gusev Vasily, AKA Xaegr
> MCP, MCSA
> http://xaegr.livejournal.com
>
>
> "Peter Monadjemi" <mona...@t-online.de> wrote in message
> news:%23Ju35FV...@TK2MSFTNGP06.phx.gbl...
> > When using write-host with non ascii characters (the German Umlaute) they
> > won't display - is this a problem with PowerShell or the console itself?
> >

> > like Write-Host Schlssel...

Keith Hill

unread,
Feb 5, 2007, 3:02:36 PM2/5/07
to
"/\/\o\/\/ [MVP]" <mow...@hotmail.NoSpam> wrote in message
news:BCD19E39-DC42-48F7...@microsoft.com...
> same here on Vista ( not using localized version of PowerShell, or
> Windows)
>
> PoSH> Write-Host Schlüssel
> Schlüssel

Ditto. I'm using the Consolas font for my PoSH console.

36> '0x{0:X}' -f [int]'Schlüssel'[4]
0xFC

Which sure enough is the correct character as displayed in charmap for the
consolas font. I would suggest trying Lucida Console like someone else had
mentioned.

--
Keith

0 new messages