Skip to content

Issues renaming column to contain UK pound sign £ #784

Answered by davb06
davb06 asked this question in Q&A
Discussion options

You must be logged in to vote

Solved! This is not a Miller issue, but a Windows batch file issue. Is a trap for the unwary.

Thanks @aborruso for your answer. This got me testing further. I found that the command - if run directly in the command prompt worked as you found.

I missed the fact that the issue arose in a batch file. The issue here is that a UK pound sign £ is not an ascii character, so is processed differently by the command prompt and Windows GUI programs like Notepad. It is fixed by changing the code page in the batch file to 650001 for unicode.

This idea was discussed at Change the active console Code Page, which explains that the default code page is determined by the Windows Locale.

For example, put th…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by davb06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants