sd icon indicating copy to clipboard operation
sd copied to clipboard

Error: Windows stdio does not support writing non-UTF-8 byte sequences

Open sergeevabc opened this issue 4 years ago • 4 comments

Source: koi8-r.zip

$ sd -p "<meta.*?charset=.*?>" $1 koi8-r.htm
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">                                                                               
<!-- saved from url=(0035)http://www.chat.ru/~bozzo/women.htm -->                                                                            
<!-- BEGIN Naviscope Javascript --><HTML><HEAD><TITLE>Error: Windows stdio in console mode does not support writing non-UTF-8 byte sequences 

sergeevabc avatar Apr 28 '21 17:04 sergeevabc

I hade the same issue in Windows 11 @sergeevabc - for me the problem was that the input file hade some bad first bytes. Can you ensure your input file is a good format? If you can check on Linux try file <inputfile> and see if it is a know format?

yooakim avatar Dec 29 '21 15:12 yooakim

this offtopic but How you guys installed it on windows?

jd-solanki avatar Aug 23 '23 06:08 jd-solanki

Errr... It seems this issue is still not resolved. I have downloaded a file mentioned in the original first message and run the same command as before with a fresh SD 1.0 release. The app did not generate an error, but only a blank screen, while the file itself remained unchanged.


@yooakim

$ file koi8-r.htm
koi8-r.htm: HTML document, ISO-8859 text, with CRLF line terminators

@jd-solanki, there is pre-compiled Windows binary to download, unpack and run.

sergeevabc avatar Dec 07 '23 09:12 sergeevabc