Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

typing is ok but copy-paste does not encode
similar topic =3D "Help! Unicode cut/paste on Unix"

OS =3D No problem is Windows XP , but in ubuntu 7.04
application =3D aMSN 0.97RC1
tcl/tk version =3D 8.5a6

The problem is not typing in gr, but pasting gr characters from
another program.
example:
If I select with mouse from terminal the gr word =CE=B3=CE=B5=CE=B9=CE=
=AC and paste the
text in the message window of aMSN , I get the following:
\u03b3\u03b5\u03b9\u03ac

This is my first message here , please ask me for additional
information.
I am a newbie and I apologies if the solution is somewhere that I
didn't see...


Report this thread to moderator Post Follow-up to this message
Old Post
nick_meet@yahoo.gr
08-14-07 03:20 AM


Re: typing is ok but copy-paste does not encode
A better definition of the problem:
copy-paste(Ctrl-v) UTF-8 characters to a tcl/tk application on a Unix-
like OS

The only sure , is that there is no official solution:
http://www.cl.cam.ac.uk/~mgk25/unicode.html#x11


Report this thread to moderator Post Follow-up to this message
Old Post
nick_meet@yahoo.gr
08-14-07 03:20 AM


Re: typing is ok but copy-paste does not encode
nick_m...@yahoo.gr wrote:
> copy-paste(Ctrl-v) UTF-8 characters to a tcl/tk application on a Unix-
> like OS
>
> The only sure , is that there is no official solution:http://www.cl.cam.ac.uk/~mgk25/uni
code.html#x11

Well, yes and no. The solution that has been fairly widely adopted was
to define a new format for data transfer on Unix that sent the data as
utf-8. Tk supports that format, and has done since 8.4 (a fair few
years now). The problem only comes when the other end of the transfer
*doesn't* support the format and instead sends random 8-bit data in an
unknown encoding through the STRING type. There's not much Tk can do
in that case except guess, and it may well not guess right. (I don't
remember if it uses the system encoding or if it guesses ISO 8859-1.)
Working around bugs in other applications is a mug's game...

Donal.


Report this thread to moderator Post Follow-up to this message
Old Post
Donal K. Fellows
08-15-07 12:10 AM


Re: typing is ok but copy-paste does not encode
I am a newbie so I stop here.I informed the aMSN developers and I hope
they will understand what to do.

Thank you for your time!


Report this thread to moderator Post Follow-up to this message
Old Post
nick_meet@yahoo.gr
08-15-07 03:10 AM


Re: typing is ok but copy-paste does not encode
I am a newbie ,so I stop here.I informed the aMSN developers and I
hope they will understand what to do.

Thank you for your time!


Report this thread to moderator Post Follow-up to this message
Old Post
nick_meet@yahoo.gr
08-15-07 03:10 AM


Re: typing is ok but copy-paste does not encode


Report this thread to moderator Post Follow-up to this message
Old Post
nick_meet@yahoo.gr
08-15-07 03:10 AM


Re: typing is ok but copy-paste does not encode
Donal K. Fellows <donal.k.fellows@man.ac.uk> wrote:
> nick_m...@yahoo.gr wrote: 
>
> unknown encoding through the STRING type. There's not much Tk can do
> in that case except guess, and it may well not guess right. (I don't
> remember if it uses the system encoding or if it guesses ISO 8859-1.)
> Working around bugs in other applications is a mug's game...

I don't think this is the right answer, since nick_meet wrote
that he got the string "\u03b3\u03b5\u03b9\u03ac", which looks
like the message has been correctly "understood" by aMSN, but
its displaying failed.
I wonder if each of these \u... things behave like single
characters, (which would indicate a font-problem) or if they
behaved like separate  '' 'u'  '0'  characters... (which would
hint towards some explicit malakia happening in amsn)


Report this thread to moderator Post Follow-up to this message
Old Post
Andreas Leitgeb
08-17-07 01:11 PM


Re: typing is ok but copy-paste does not encode
Problem fixed in latest SVN version(r8963). They didn't save/retreive
data from the clipboard using UTF8 (undocumented). Thanks to dkf from
#tcl channel who pointed that out.


Report this thread to moderator Post Follow-up to this message
Old Post
nick_meet@yahoo.gr
08-24-07 01:10 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Tcl archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 11:29 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.