Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[UNICODE?] Charm ne poste pas
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
Trevoke
Advocate
Advocate


Joined: 04 Sep 2004
Posts: 4099
Location: NY, NY

PostPosted: Fri Nov 18, 2005 4:21 pm    Post subject: [UNICODE?] Charm ne poste pas Reply with quote

charm est un client texte pour livejournal. J'essaye la commande suivante :

cat .body | charm -q -s `cat .taocounter`

.body wrote:
The Tao that can be told is not the eternal Tao.
The name that can be named is not the eternal name.
The nameless is the beginning of heaven and Earth.
The named is the mother of the ten thousand things.
Ever desireless, one can see the mystery.
Ever desiring, one sees the manifestations.
These two spring from the same source but differ in name; this appears as darkness.
Darkness within darkness.
The gate to all mystery.
............................
............................
If you can talk about it,
it ain't Tao.
If it has a name,
it's just another thing.

Tao doesn't have a name.
Names are for ordinary things.

Stop wanting stuff;
it keeps you from seeing what's real.
When you want stuff,
all you see are things.

Those two sentences
mean the same thing.
Figure them out,
and you've got it made.

Names are for ordinary things.

Stop wanting stuff;
it keeps you from seeing what's real.
When you want stuff,
all you see are things.

Those two sentences
mean the same thing.
Figure them out,
and you've got it made.


.taocounter ne contient que '1'. Meme en faisant juste "| charm -q", voila le resultat :

Code:
Traceback (most recent call last):
  File "/usr/bin/charm", line 14, in ?
    ljcharm.main()
  File "/usr/lib/python2.4/site-packages/ljcharm.py", line 4110, in main
    jobj.quick_mode(resumeold)
  File "/usr/lib/python2.4/site-packages/ljcharm.py", line 3839, in quick_mode
    ok = self.cli_postevent()
  File "/usr/lib/python2.4/site-packages/ljcharm.py", line 1285, in cli_postevent
    self.client_op("postevent", [ "lineendings", "event" ] +
  File "/usr/lib/python2.4/site-packages/ljcharm.py", line 1114, in client_op
    "auth_response" ], blist)
  File "/usr/lib/python2.4/site-packages/ljcharm.py", line 1027, in web_encode
    s = utf8_urlencode(pdict)
  File "/usr/lib/python2.4/site-packages/ljcharm.py", line 293, in utf8_urlencode
    for c in w.encode("UTF-8"):
UnicodeDecodeError: 'ascii' codec can't decode byte 0xef in position 70: ordinal not in range(128)


Donc, euh, probleme avec python et unicode je suppose? Mais comment je repare ca?
_________________
Votre moment detente
What is the nature of conflict?
Back to top
View user's profile Send private message
nemo13
Veteran
Veteran


Joined: 08 Oct 2004
Posts: 1016
Location: France/Istres

PostPosted: Fri Nov 18, 2005 8:49 pm    Post subject: Reply with quote

Bonsoir,

Je sens que je serais largement à cotè mais as-tu passé
le script
Code:
python-updater

?
puisqu'à priori tu viens de passer en python 2.4
Après : joker de ma part

Amicalement:jlp
Back to top
View user's profile Send private message
Trevoke
Advocate
Advocate


Joined: 04 Sep 2004
Posts: 4099
Location: NY, NY

PostPosted: Fri Nov 18, 2005 9:06 pm    Post subject: Reply with quote

Je n'avais pas lance le script, mais il n'a rien trouve a recompiler :/

edit : charm marche si je le lance tout seul, donc c'est dans cette commande qu'il y a un probleme, et je pense que c'est un probleme de unicode avec python mais pas sur :cry:
_________________
Votre moment detente
What is the nature of conflict?
Back to top
View user's profile Send private message
Trevoke
Advocate
Advocate


Joined: 04 Sep 2004
Posts: 4099
Location: NY, NY

PostPosted: Fri Nov 18, 2005 9:21 pm    Post subject: Reply with quote

Enfin, voila, je vous dis ce que jlj (un autre client texte pour livejournal) me sort comme erreur :

ERROR: Was not able to send message. (Client error: Protocol version mismatch: Posting in a community with international or special characters require a Unicode-capable LiveJournal client. Download one at http://www.livejournal.com/download/.)

Pas top.
_________________
Votre moment detente
What is the nature of conflict?
Back to top
View user's profile Send private message
boozo
Advocate
Advocate


Joined: 01 Jul 2004
Posts: 3193

PostPosted: Fri Nov 18, 2005 9:46 pm    Post subject: Reply with quote

re-
:lol:
çà peut-être ? :? mais je ne sais pas si celà correpond a ton besoin... c'est pas en textmode
sinon y'a pas des IM qui gère çà... en texte genre centericq ? devrait aussi prendre utf8 non ?

[Edit] ---
_________________
" Un psychotique, c'est quelqu'un qui croit dur comme fer que 2 et 2 font 5, et qui en est pleinement satisfait.
Un névrosé, c'est quelqu'un qui sait pertinemment que 2 et 2 font 4, et ça le rend malade ! "
Back to top
View user's profile Send private message
Trevoke
Advocate
Advocate


Joined: 04 Sep 2004
Posts: 4099
Location: NY, NY

PostPosted: Fri Nov 18, 2005 10:19 pm    Post subject: Reply with quote

L'avantage du client en mode CLI c'est que tout betement je peux le coller dans une commande pour cron ;-) les trucs genre deepest sender.. pas tellement!

centericq je l'ai installe mais j'ai pas trouve la section pour livejournal. J'ai pas du assez chercher..
_________________
Votre moment detente
What is the nature of conflict?
Back to top
View user's profile Send private message
boozo
Advocate
Advocate


Joined: 01 Jul 2004
Posts: 3193

PostPosted: Fri Nov 18, 2005 10:30 pm    Post subject: Reply with quote

celà semble bien y être pourtant :(

[Edit] ouuups... me suis trompé de lien...
_________________
" Un psychotique, c'est quelqu'un qui croit dur comme fer que 2 et 2 font 5, et qui en est pleinement satisfait.
Un névrosé, c'est quelqu'un qui sait pertinemment que 2 et 2 font 4, et ça le rend malade ! "
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum