=== Pendulum_ is now known as Pendulum === daxroc_ is now known as daxroc [13:39] aloha [13:41] hello! [13:48] hi~~ [13:55] hi [13:59] hows folks [14:03] doing ok... [14:06] good good [14:41] have a question, pipe '|' doesn't handle unicode char? [14:42] what do you mean? [14:44] I used python to print out some charactors, some contain unicode char, [14:44] then I used > to save the output stream as a file [14:45] when I run the python code it prints on the console without problem, [14:46] but when I used > I get a UnicodeEncodeError exception [14:46] | should pass data around as is, doesn't touch it. [14:47] sounds like a python problem. what's the exact unicodeencodeerror message? [14:47] UnicodeEncodeError: 'ascii' codec can't encode character u'\u2019' in position 96: ordinal not in range(128) [14:48] sounds like python wants to print it out, but it doesn't know how to encode the characters, so it can't print it out. [14:49] hmmm [14:49] i can get the same error. [14:50] so I better save the stream as it is? [14:50] My *guess* is that python is able to tell the difference between outputting to a file and outputting to a terminal [14:50] and knows the output encoding of the terminal, so can print it, but there is no such thing as the encoding of a file (sort of) [14:51] To fix it, you need to decide what encoding to use (utf-8 is the most common) [14:51] and change your python script to be like -> print STRING.encode("ENCODING") [14:53] and which object do I call to get the encode() method?I'm quite a newbie to python :D [14:54] You'd call it on the string object. [14:54] so like this: [14:54] print "foobar\u2019".encode("utf8") [14:56] actually that's wrong [14:56] it should be: [14:56] print u"foobar\u2019".encode("utf8") [14:56] so if you have a string called 'text', i.e. you used to do "print text", you would now do "print text.encode("utf8")" [14:58] it worked!thanks! [14:59] no problem [18:52] evening [18:57] anone about for the monthly meeting? [18:59] * airurando watched the tumbleweed drift through the #ubuntuie channel [19:06] hmmmmm............ [19:06] :( [19:06] kinda goind down hill isn;t it [19:06] I guess the meeting is cancelled [19:06] czajkowski howdy [19:07] seems that way unfortunately :( [19:07] airurando: hows things [19:07] good now. [19:07] airurando: mye the date/time needs looking at or something or asking people wny they don't want to interact ? [19:08] busted a gut getting through the ploughing championship traffic to get home for this [19:08] frustrating [19:08] :( [19:08] *hugs* [19:08] aye we'll have to re-evaluate [19:08] know how you feel [19:08] not to worry. [19:08] maybe a mail to the lsit saying people giving up time to help promote open source - Ubuntu everyone kinda needs to step up a bit [19:09] aye. [19:09] I'll try to chat to ebel about it [19:10] Oisin is 6 tomorrow :) [19:10] wow [19:11] time flies [19:11] * airurando has to work tomorrow :( [19:15] I'mm off. Will put the kids to bed instead. [19:15] That's more fun anyway ;) [20:39] oh we missed the meeting... sorry, we were swimming then eating