Unicode characters on Windows (localhost-wamp)

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
emino
Posts: 8
Joined: 2014-01-07T19:41:32-07:00
Authentication code: 6789

Unicode characters on Windows (localhost-wamp)

Post by emino »

I've made a lot of testing and i could not get IM to properly caption with unicode characters on Windows -- without reading from file.
When read from file, they turn out OK, but not from command Image
jpg upload

I'm currently using this file workaround; saving the caption to a file with file put contents & read from file. But ideally, i'd like to use the cmd like i regularly would.

I've tried setting -encoding Unicode and everything else that's mentioned but just couldnt get it to work, do you think it's possible ?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Unicode characters on Windows (localhost-wamp)

Post by snibgo »

I think your question is entirely about Windows, with nothing specific to IM. A Windows forum may be a better place to ask.

Under Windows 8.1 I can type the command ...

Code: Select all

convert -pointsize 30 caption:"šŋĩβģő" s.png
... and get the expected result. The Command Prompt font is Lucina Console and CHCP is 850.

In Windows 7, from memory, you need to set CHCP to 1252.
snibgo's IM pages: im.snibgo.com
emino
Posts: 8
Joined: 2014-01-07T19:41:32-07:00
Authentication code: 6789

Re: Unicode characters on Windows (localhost-wamp)

Post by emino »

snibgo wrote:In Windows 7, from memory, you need to set CHCP to 1252.
And how do i do that, might i ask ?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Unicode characters on Windows (localhost-wamp)

Post by snibgo »

At the command prompt, before issuing the convert command, type the following commands:

Code: Select all

chcp
chcp 1252
The first command just tells you the current setting (probably 850). The second changes it to 1252.
snibgo's IM pages: im.snibgo.com
emino
Posts: 8
Joined: 2014-01-07T19:41:32-07:00
Authentication code: 6789

Re: Unicode characters on Windows (localhost-wamp)

Post by emino »

it was 857, changed it to 1252, but made no difference.
snibgo wrote:At the command prompt, before issuing the convert command, type the following commands:

Code: Select all

chcp
chcp 1252
The first command just tells you the current setting (probably 850). The second changes it to 1252.
Post Reply