10 lines
245 B
Python
10 lines
245 B
Python
from pathlib import Path
|
|
raw = Path('src/services/ticketService.ts').read_bytes()
|
|
print('len', len(raw))
|
|
try:
|
|
raw.decode('utf-8')
|
|
print('utf8 ok')
|
|
except Exception as e:
|
|
print('decode error', e)
|
|
print(raw[e.start:e.start+12])
|