| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
Comments:
<0> reflous: one very nifty property of UTF-8 is that ASCII is ASCII. no multi-byte characters contain *any* ASCII bytes in them, they *all* have the high bit set (so they're in the range 0x80 - 0xff) <1> perltut string <1> !perltut string <2> perlbot perltut <1> ...Ehm, what's the tutorial bot command? <3> Tutorials and books: http://www.comp.leeds.ac.uk/Perl/start.html - http://library.psyon.org/programming/perl/win32perltut.html (for all platforms) - http://books.perl.org/onlinebooks <0> so if you see an ASCII character in a UTF-8 string, you know it's not part of some other sequence, but it really is an ASCII character <1> Thank you. <0> this is perhaps the most important property of UTF-8, which makes it better than UTF-16 and UTF-32 and those others, for many purposes <2> peterS: I feel like writing a fully sql compliant mail client <0> what does a sql compliant mail client mean? <0> you mean store messages in a database? hey, you could call it Exchange <1> The seconed link is broke... <4> judge hershey isn't bad <2> peterS: Something hideous and evil like that <2> peterS: It'd be nice to be able to define a particular view via sql some how
<5> ... storing messages in a database isn't a bad idea. <2> Of course I'm also considering writing a irc client that uses sql, so you might want to ignore me <4> yeah, its called Email::Store <0> buu: I don't quite see how you represent arbitrary headers in a form that makes it convenient to sort them using SQL <2> peterS: Neither do I =[ <6> peterS: ok so I ran that iconv, but it didn't change the utf-8 dash into a regular dash.. or is that not what the iconv does <7> One could just separate all the componenets into different columns, but *how* you do that is the tricky thing. <0> reflous: it's a unix filter, so it takes input as filenames or stdin, and produces output on stdout. is that how you're using it/ <5> peterS: email headers aren't quite arbitrary there is an rfc for them <0> oh really? would you be referring to rfc 2822? <4> but it is extendible <2> ecarroll: The RFC includes arbitrary ones. <0> I'm sure I've never heard of RFC 2822 <8> thinkinginbinary: 10001110001! <0> 0x471? <0> what does that mean? <9> arubin: you lose. that's an old joke. <9> Does anyone here know a good geek-friendly domain registrar? <8> peterS: that is between me and thinkinginbinary nosy <4> what's wrong with netsol.com <8> jdv79: other than their pact with Satan? <0> dunno, they all seem more or less equivalent. godaddy.com was cheaper than some others last time the issue came up for me <4> yeah, other than that <6> peterS: yeah <9> price is not an issue. pacts with satan are. <0> before that it was totalregistrations.com but they jacked their prices up at some point in order to piss me off <4> do you run windows? <6> peterS: iconv -f utf-8 -t 1.txt > 2.txt <4> arubin <8> jdv79: no <9> i wanna kill whoever thought of the idea of buying domains for the sole purpose of wasting them or selling them. <0> reflous: -t requires an output encoding name, like iso-8859-1 <6> peterS: sorry I truncated that, I had that too <2> thinkinginbinary: I kind of agree =[ <0> reflous: -f "from this" -t "to that" <6> peterS: iconv -f utf-8 -t iso-8859-1 1.txt > 2.txt <9> buu: I should start a parallel alternative dns. <8> thinkinginbinary: I support you in your muderous spree <0> reflous: yeah that oughta work <8> murderous <2> thinkinginbinary: You do that. <9> buu, peterS: If only I had the bandwidth. <6> peterS: this is still a utf8 dash though <0> reflous: it had better not be, it should have been converted to the single byte 0xad without the 0xc2 prefix <9> Anyone know about pairNIC? <8> limeys <6> peterS: vi calls the file [converted] on the bottom of the screen, what does that mean? <10> #vim :) <0> reflous: I suspect that depends on your version of vi. the original vi didn't know anything about character conversions <9> vim is awesome. <6> dec: hehe <6> peterS: well I still have the utf8 dash :( <2> thinkinginbinary: Nobody would use it =[ <9> buu: :-b <0> reflous: then I suggest you complain to the author of your version of vi, it's probably converting it for you or something <0> reflous: do other apps besides vi see the two-byte character as well? <6> peterS: more shows nothing <6> peterS: the character is mia <0> reflous: try 'xxd' which is shipped in the vim package. pretty good for seeing what the bytes look like
<6> c2ad <2> Yay robots with chain saws! <10> Much more fun that gorillas with sledgehammers <10> s/that/than/ <0> well, c2 ad is very definitely the utf-8 encoding of U+00AD (I did the bit manipulation myself to verify), and iconv should very definitely convert that to a single byte 0xad when outputting iso-8859-1 <0> so I don't know what to tell you <6> peterS: I just did iconv on a file that ONLY had the dash, and it converted, but if I try to do it with the real file its no good :( <9> peterS: Locale issues? <11> http://solace.is-a-geek.org/web-wisdom/ <6> peterS: actually iconv converted it to ad <0> reflous: hmmm ... is the input file perhaps double-utf-8-converted? like it actually has "c3 82 c2 ad"? that's what you get if you convert 0xad from iso-8859-1 to utf-8 then convert *that* from iso-8859-1 to utf-8 *again* <2> Hrm. I wonder what would be easier, Curses or Curse::Ui <12> mrm... <6> peterS: I don't think so, but the double conversion is a definite possibility <12> anyone have any good examples of parsing a file that has header, detail, and footer sections? <13> buu, with previous knowledge with POE I think both are easy <0> reflous: the thing is, lots of utf-8 is valid iso-8859-1, so a double conversion is quite possible to achieve by accident. the reverse is not true, very little iso-8859-1 text is valid utf-8 (unless it's pure ASCII, which of course is a common subset of both) <13> aahh wait, the one without POE.... right? <13> buu, I find Cuirses::UI easy <0> reflous: since utf-8 has rather unique bit patterns, you don't just produce valid utf-8 by spewing random bytes <2> amnesiac: But it doesn't do exactly what I want <13> like? <13> I haven't used them a lot, just ncurses in C <2> amnesiac: Like the List Control Widget <6> peterS: I don't think so, but the double conversion is a definite possibility <6> peterS: sorry <6> peterS: that was an accident repeat <14> I'm trying CGI::Ajax for the first time inside a CGI::Application using HTML::Template. I'm feeding the output of HTML::Template into CGI::Ajax and am getting some results where it looks like the headers for my pages are becoming a part of the page. Can anyone please help meto resolve this? <2> No <15> People said he was useless, those people all were fools <12> TMM - too many modules! <15> 'Cause Curtis Loew was the finest picker to ever play the blues <2> hobbs: When are you getting your *** up here? <15> buu: tomorrow <2> Nice <15> buu: Starting 6am <12> hobbs: you really working @ buu's company? <15> pravus: I sure hope so, otherwise I'm paying a lot for an apartment I can't afford <12> :) <10> buu - you have a company? <2> hobbs: You have my cell right? <12> well, the company buu works for i guess <10> Oh :) <15> buu: yeah <2> Excellent. <10> Where's my job, buu? :( <12> dec: i have a problem saying the right thing <2> dec: You should have applied <10> What was the job? <12> buu: job description? <10> (just curious now :) <12> jynx! <12> sorta... <12> dec: aren't you in .au? <2> dec: Prostitutes <10> pravus - Yup. Too far for me to move for a job... :) <12> i need to get down there one day <10> Not today, it's cold. *brrr* <12> haul some *** on that big *** flat desert you have <12> hrm... it is getting warm here. N vs S i guess <15> It _was_ getting warm here <15> and then it quit ;) <2> Yeah it dropped down to like 30 again <12> it's been around 75-80F here <12> the more i use svn, the more i likes it <10> it's 60F here, apparently... Temperature: 60 F (16 C) <12> i wish my country would switch to metric... i really should learn all the conversions <10> I don't know them, had to look it up. :) <16> bah. <16> just remember 20 is a bit warm <10> You guys were talking about 30 F... no idea how warm/cold that is <16> water freeses at 32 <12> well, if the world used metric (which apparently the US is about the only country that doesn't), it'd all be easy
Return to
#perl or Go to some related
logs:
#fluxbox xubuntu libretto
qmail-ldap ldap proxy cache gentoorun bittornado
k3b emoviex #css where do i get mcopy can't read bitmap block installing xman on ubuntu #web
|
|