convert symbols like © with command line

Discussions on NConvert - the command line tool for image conversion and manipulation

Moderators: XnTriq, xnview

Post Reply
janbo1982
Posts: 4
Joined: Thu Mar 12, 2020 12:26 pm

convert symbols like © with command line

Post by janbo1982 » Wed Mar 18, 2020 10:13 am

Hello all!

do you could add that it work to convert symbols like ©? At the moment nconvert.exe do "-®" from "©". For example with Arial.

What do you thing?

BR
Jan

cday
XnThusiast
Posts: 2499
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: convert symbols like © with command line

Post by cday » Wed Mar 18, 2020 10:51 am

janbo1982 wrote:
Wed Mar 18, 2020 10:13 am
do you could add that it work to convert symbols like ©? At the moment nconvert.exe do "-®" from "©". For example with Arial.
The problem is not with NConvert but with the way the Windows command line reads code from all utilities, so it is unlikely that Pierre can implement a solution.

The issue seems to relate to the code pages used, not something I know much about, but if you Google something like 'cmd incorrect character code pages' there are links to resources that give some background, maybe your technician can understand it. Personally I wouldn't want to change the code page used without a full understanding of what I was doing.

However, from a quick look at the internet search results, running your code from Windows PowerShell rather than CMD should be a workaround... :D

The following technical resource seems particularly relevant and refers to the use of use PowerShell.

Edit:

You also, of course, need to ensure that the font you specify supports the '©' character, and it may be advisable to use a .ttf font.

Post Reply