View previous topic :: View next topic |
Author |
Message |
Trevoke Advocate
Joined: 04 Sep 2004 Posts: 4099 Location: NY, NY
|
Posted: Fri Nov 18, 2005 4:21 pm Post subject: [UNICODE?] Charm ne poste pas |
|
|
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 |
|
|
nemo13 Veteran
Joined: 08 Oct 2004 Posts: 1016 Location: France/Istres
|
Posted: Fri Nov 18, 2005 8:49 pm Post subject: |
|
|
Bonsoir,
Je sens que je serais largement à cotè mais as-tu passé
le script
?
puisqu'à priori tu viens de passer en python 2.4
Après : joker de ma part
Amicalement:jlp |
|
Back to top |
|
|
Trevoke Advocate
Joined: 04 Sep 2004 Posts: 4099 Location: NY, NY
|
Posted: Fri Nov 18, 2005 9:06 pm Post subject: |
|
|
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 _________________ Votre moment detente
What is the nature of conflict? |
|
Back to top |
|
|
Trevoke Advocate
Joined: 04 Sep 2004 Posts: 4099 Location: NY, NY
|
Posted: Fri Nov 18, 2005 9:21 pm Post subject: |
|
|
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 |
|
|
boozo Advocate
Joined: 01 Jul 2004 Posts: 3193
|
|
Back to top |
|
|
Trevoke Advocate
Joined: 04 Sep 2004 Posts: 4099 Location: NY, NY
|
Posted: Fri Nov 18, 2005 10:19 pm Post subject: |
|
|
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 |
|
|
boozo Advocate
Joined: 01 Jul 2004 Posts: 3193
|
|
Back to top |
|
|
|
|
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
|
|