Sep-12-2019, 08:51 PM
Quote:No this is where i placed the file,you can choose whatever place you like.
Rember thatpython
andpip
should work from any folder same for all OS,for Windows look here
So a test like this should work no matter which folder on OS you are in.
Oh yes, I actually learned this when following your advice in the first reply to use chardet. I had to add the python path to the environmental variables and then install pip to be able to install chardet.
Quote:That use cmder a much better shell than cmd/Poweshell.
That would be another thing for me to look at and learn.
Quote:When i use rb then i read file in binary(no encoding).
With Unicode still need to decode to a encoding.
I actually meant these two examples:
C:\code λ chardetect myfile.txt myfile.txt: ascii with confidence 1.0
# copy of text in post and save as utf-8 λ chardetect test.srt test.srt: utf-8 with confidence 0.505Thank you very much for your help and all your insights. This has been great because it's given me a lot more to study and learn.
Best regards.