IRCRehberi.Net- Türkiyenin En iyi IRC ve Genel Forum Sitesi

IRCRehberi.Net- Türkiyenin En iyi IRC ve Genel Forum Sitesi (https://www.ircrehberi.net/)
-   IRC & Web Client Uygulamaları (https://www.ircrehberi.net/irc-web-client-uygulamalari/)
-   -   QwebIRC Türkçe Karakter Çözümü (https://www.ircrehberi.net/irc-web-client-uygulamalari/18595-qwebirc-turkce-karakter-cozumu.html)

aLtimod 23 Nisan 2020 18:49

QwebIRC Türkçe Karakter Çözümü
 
Klasör: -> QwebIRC
Dosya: -> (ircclient.py)

BULUN

Kod:

def utf8_iso8859_1(data, table=dict((x, x.decode("iso-8859-1")) for x in map(chr, range(0, 256)))):
return (table.get(data.object[data.start]), data.start+1)

codecs.register_error("mixed-iso-8859-1", utf8_iso8859_1)

def irc_decode(x):
try:
return x.decode("utf-8", "mixed-iso-8859-1")
except UnicodeDecodeError:
return x.decode("iso-8859-1", "ignore")


DEGISTIRIN,

Kod:

def utf8_iso8859_9(data, table=dict((x, x.decode("iso-8859-9")) for x in map(chr, range(0, 256)))):
return (table.get(data.object[data.start]), data.start+1)

codecs.register_error("mixed-iso-8859-9", utf8_iso8859_9)

def irc_decode(x):
try:
return x.decode("utf-8", "mixed-iso-8859-9")
except UnicodeDecodeError:
return x.decode("iso-8859-9", "ignore")

iyi forumlar..

oMeN 19 Ağustos 2020 12:01

Emeğine sağlık Faruk

Reyhan 19 Ağustos 2020 12:06

Emeğine sağlık @[Üye Olmadan Linkleri Göremezsiniz. Üye Olmak için TIKLAYIN...] ;ççk

Sim 19 Ağustos 2020 12:08

emeginize saglik

Allecra 20 Ağustos 2020 11:39

Paylaşım için teşekkürler.

Ruyanur 15 Ekim 2020 19:41

Emeginize saglik,paylasim icin tesekkurler.

BLueMooN 06 Aralık 2020 13:54

Emeğine sağlık.


Tüm Zamanlar GMT +3 Olarak Ayarlanmış. Şuanki Zaman: 12:21.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions, Inc.

Copyright ©2019 - 2023 | IRCRehberi