* [9fans] perl + utf?
@ 2003-01-12 22:19 andrey mirtchovski
2003-01-13 17:07 ` Russ Cox
0 siblings, 1 reply; 3+ messages in thread
From: andrey mirtchovski @ 2003-01-12 22:19 UTC (permalink / raw)
To: 9fans
does the perl port understand utf strings?
there's a perl irc client (http://www.iagora.com/~espel/sirc.html)
that requires very little modification to get going under plan9,
but i found out that UTF strings are displayed incorrectly.
do you think that's a problem of the client or the perl port?
thanx, andrey
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [9fans] perl + utf?
2003-01-12 22:19 [9fans] perl + utf? andrey mirtchovski
@ 2003-01-13 17:07 ` Russ Cox
2003-01-13 17:10 ` andrey mirtchovski
0 siblings, 1 reply; 3+ messages in thread
From: Russ Cox @ 2003-01-13 17:07 UTC (permalink / raw)
To: 9fans
I didn't do anything with Unicode when I ported Perl,
but it's hard to break the basics.
It's probably the client not translating from Latin1 to UTF8.
Everything on IRC is in Latin1, I think.
g% perl -e 'print "☺\n"'
☺
g%
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [9fans] perl + utf?
2003-01-13 17:07 ` Russ Cox
@ 2003-01-13 17:10 ` andrey mirtchovski
0 siblings, 0 replies; 3+ messages in thread
From: andrey mirtchovski @ 2003-01-13 17:10 UTC (permalink / raw)
To: 9fans
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: TEXT/PLAIN; charset=X-UNKNOWN, Size: 858 bytes --]
unicode or not, dsirc is a fairly decent, easy to setup irc client. for those who
don't want to type in the same window they receive messages in, here is a solution
(note that it works mostly for single-channel sessions, which is what i normally do):
% cat $home/bin/rc/irc
#!/bin/rc
# start a new window for dsirc
# text, accept irc input in the
# current window
bind '#|' /tmp
window -m dsirc < /tmp/data
cat > /tmp/data1
%
this works reasonably well for me, but on the other hand my irc needs are not that
complicated :)
andrey
On Mon, 13 Jan 2003, Russ Cox wrote:
> I didn't do anything with Unicode when I ported Perl,
> but it's hard to break the basics.
>
> It's probably the client not translating from Latin1 to UTF8.
> Everything on IRC is in Latin1, I think.
>
> g% perl -e 'print "☺\n"'
> ☺
> g%
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-01-13 17:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-12 22:19 [9fans] perl + utf? andrey mirtchovski
2003-01-13 17:07 ` Russ Cox
2003-01-13 17:10 ` andrey mirtchovski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).