Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Shell 

xcopy and special chars

1027948_16356344_wk 35 @NIVEA BODY@48965 Body 625ml 77240 CrŠme Soft 250-200ml 24253 Inshower @ AD @ $0 30 $0 50 $0 05 @ RCWC EF_VS.xlsm
1027948_16356344_wk 35 @NIVE🤮 BODY@48965 Body 625ml 77240 Crème Soft 250-200ml 24253 Inshower @ AD @ $0 30 $0 50 $0 05 @ RCWC EF_VS


the xcopy in my batch file is not copying the special chars correctly. The Š is turned into a è. There are other funny chars that are changed as well.

This is the command in the batch file:
dir "\\USATL02ERAS40\auditfiles\Loblaws\LCL_2016\Z-DT\NDS 2016\LCL SUPPLIED 2016\*.xls*" /A /B /S > XLSVndDir1.tx

This is the file name:
1027948_16356344_wk 35 @NIVEA BODY@48965 Body 625ml 77240 CrŠme Soft 250-200ml 24253 Inshower @ AD @ $0 30 $0 50 $0 05 @ RCWC EF_VS.xlsm

This is the output in my text file:
1027948_16356344_wk 35 @NIVEA BODY@48965 Body 625ml 77240 Crème Soft 250-200ml 24253 Inshower @ AD @ $0 30 $0 50 $0 05 @ RCWC EF_VS.xlsm

How do I get the correct name with the special chars?
I found your question somewhere else online, and I'm gonna say the same thing as one of the guys on that post. You are using the dir command, not xcopy...
thanks.....and as I said on the other forum...I meant dir not xcopy, but you already knew this because you read it.

Some help trying to solve for this would have been better.
Try running the command without the redirect and see what you get. When I run it without redirect, I see the proper output in the console. Output to text document removes the accent symbol for me but keeps it the same otherwise. Once you figure out why the letter is changing, then you can work on the accent mark.
There's no place like ~/


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C#] by draxyeeJul 7, 2020 07:29 PM 1 139 Jul 7, 2020 07:29 PM
Last Post: iolaka
[C] by gurlhackerclubMay 19, 2020 05:18 PM 8 259 May 19, 2020 05:18 PM
Last Post: k1r3n
[Shell] by HackooAug 15, 2017 12:23 AM 2 177 Aug 15, 2017 12:23 AM
Last Post: Hackoo