Utilities/__init__.py

branch
5_2_x
changeset 1660
57f2bd52deb7
parent 1509
c0b5e693b0eb
child 1732
b140a24e147a
child 1815
6ed2ac61a108
equal deleted inserted replaced
1657:53b34dfe1fa0 1660:57f2bd52deb7
324 if text[index] == "\\": 324 if text[index] == "\\":
325 qb = QByteArray.fromHex(text[index:index + 4]) 325 qb = QByteArray.fromHex(text[index:index + 4])
326 buf += bytes(qb) 326 buf += bytes(qb)
327 index += 4 327 index += 4
328 else: 328 else:
329 buf += bytes(text[index], encoding="ascii") 329 buf += bytes(text[index], encoding="utf-8")
330 index += 1 330 index += 1
331 buf = buf.replace(b"\x00", b"") 331 buf = buf.replace(b"\x00", b"")
332 return decodeBytes(buf) 332 return decodeBytes(buf)
333 333
334 334

eric ide

mercurial