-
I am having problems when renaming a column to "Employer contribution (£)", but the new column name appears as "Employer contribution (┬ú)". Here is a hex view of the output: Can I modify my command - or is this a bug? Curiously, this problem does not arise with a much more limited command, where I cut and rename a single column:
This mini input file: input.CSV Am running on Windows with the latest v6 beta build. (I have updated my post, to clarify my real problem.) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi,
I have
It seems all right |
Beta Was this translation helpful? Give feedback.
-
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 this code at the start of your batch file:
|
Beta Was this translation helpful? Give feedback.
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…