cryptixman / tzmud

Automatically exported from code.google.com/p/tzmud
GNU General Public License v3.0
1 stars 0 forks source link

please add utf8 support #30

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. try to "say olá"
2. see the output: you just said "ol"
3. try with any other utf8 char

What is the expected output? What do you see instead?
I should see "olá" said, not "ol"

What version of the product are you using? On what operating system?
0.8, Linux.

Original issue reported on code.google.com by marcos.m...@optimus.pt on 23 Dec 2009 at 8:23

GoogleCodeExporter commented 9 years ago
Sorry to take so long to get back to you about this.
I did not get any notification of the bug.

Do you have any idea what would be required to allow
utf8 to pass through the server? I am really not
familiar with the issue at all.

Would all strings need to be changed over to unicode?

Do most MUDs work properly with utf8?

Original comment by miss...@hotmail.com on 11 Feb 2010 at 9:01

GoogleCodeExporter commented 9 years ago
Well, http://code.google.com/p/evennia/ supports it, so I don't really know how 
do
they do it, but I guess you could take a look into their code. I don't think 
you have
to modify strings at all, just read them from the telnet session in a different 
way.
Many MUDs work properly with utf8, and for non-english MUDs that's quite 
important...

Original comment by mindboos...@gmail.com on 12 Feb 2010 at 3:43

GoogleCodeExporter commented 9 years ago
Try r361 and see if it works for you.

You will need to add a line to your conf.py  like:

allow_utf8 = True

Original comment by miss...@hotmail.com on 13 Feb 2010 at 4:49

GoogleCodeExporter commented 9 years ago
r363 also tries to ensure proper encoding of the web interface.

Original comment by miss...@hotmail.com on 14 Feb 2010 at 6:19

GoogleCodeExporter commented 9 years ago
No, sorry :-(

say olá tudo bem?
You say, "ol�"

Original comment by marcos.m...@optimus.pt on 22 Feb 2010 at 5:49

GoogleCodeExporter commented 9 years ago
Hmmm. This is frustrating. I know it was working last week, but now I can't get 
it to
work either.

Thanks for testing. I will try again later.

Original comment by miss...@hotmail.com on 22 Feb 2010 at 11:24

GoogleCodeExporter commented 9 years ago
Hi there, sorry to push you... Did you have time to take a look into this issue?

Thank you.

Original comment by mindboos...@gmail.com on 15 Apr 2010 at 3:50

GoogleCodeExporter commented 9 years ago
It works for me, as long as I have the encoding of the client set to ISO 8859-1.

What encoding are you using in your client?

Original comment by miss...@hotmail.com on 23 Apr 2010 at 6:20

GoogleCodeExporter commented 9 years ago
Of course, you want to use UTF-8 encoding in your client.
Sorry, I lost track of the main goal here...

I have "say" working with utf-8 in r365:

say olá tudo bem?
You ask, "olá tudo bem?"

I'm still working on making it possible to clone objects with utf-8 
identifiers...

Original comment by miss...@hotmail.com on 25 Apr 2010 at 12:49

GoogleCodeExporter commented 9 years ago
Try r367 when you get a chance.
It works, but it is not perfect...

There is some disagreement between clients what the correct encoding is. So 
saying
something in one client will look different in another client. For instance:

say olá tudo bem?
You ask, "olá tudo bem?"
(in other client ...
lee2 asks, "olá tudo bem?")

say olá tudo bem?
You ask, "olá tudo bem?"
(in other client...
lee asks, "ol� tudo bem?")

So, as long as the clients emit/accept the same things it works, but I think 
that's
not really a great assumption.

Original comment by miss...@hotmail.com on 25 Apr 2010 at 7:25

GoogleCodeExporter commented 9 years ago
Yeah, usually this point you describe is how far MU* servers go, after that the
telnet protocol to identify the charset and do the proper translations is too 
complex
and people usually quit of doing to (even if - as an incentive, let me tell you 
that
if tzmud does that, it will be the first MU* I know of that finaly implements 
unicode
as it is supposed to be! ;-)). Anyway, this is already great, thanks for 
bothering
and working on the issue. I still didn't test it, tho, but I will ASAP and let 
you
know if it works as expected with me ;-)

Thanks!

Original comment by marcos.m...@optimus.pt on 26 Apr 2010 at 3:03

GoogleCodeExporter commented 9 years ago
Yup, works as expected! Thanks!

Original comment by marcos.m...@optimus.pt on 26 Apr 2010 at 3:09

GoogleCodeExporter commented 9 years ago
Fixed as of r399.
May need to re-initialize database.

Original comment by miss...@hotmail.com on 31 May 2010 at 2:34