Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tekst1 = 'Białystok'.encode('utf_16')
- print(tekst1)
- list(tekst1)
- tekst1be = 'Białystok'.encode('utf_16be')
- list(tekst1be)
- print(tekst1be)
- tekst1le = 'Białystok'.encode('utf_16le')
- list(tekst1le)
- print(tekst1le)
- tekst3 = 'Ostrołęka'.encode('utf_8-sig')
- list(tekst3)
- print(tekst3)
- tekst4 = 'Ostrołęka'.encode('utf_8')
- import os
- os.chdir('C:\\usun')
- tekst5 = 'Ostrołęka'
- open('atekst5.txt', 'w', encoding='utf_8-sig').write(tekst5)
- open('atekst5.txt', encoding='utf_8-sig').read()
- open('atekst5a.txt', 'w', encoding='utf_8').write(tekst5)
- open('atekst5a.txt', encoding='utf_8-sig').read()
- open('atekst5.txt', encoding='utf_8').read()
Advertisement
Add Comment
Please, Sign In to add comment