aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Display Asian characters in amule  (Read 3346 times)

compuboy1010

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 1
Display Asian characters in amule
« on: February 06, 2005, 05:06:11 PM »

Hi board,

how can Asian characters be displayed in amule?
All I can see are boxes. In Emule on Windows I was able to display Chinese and Japanese Characters and also use them while searching. Is that also possible with amule?
Logged

volpol

  • Evil KDE Hater
  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 43
Re: Display Asian characters in amule
« Reply #1 on: February 07, 2005, 12:36:36 PM »

as you can see it's perfectly possible. check your locale and fonts.
« Last Edit: February 23, 2005, 10:36:14 PM by volpol »
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: Display Asian characters in amule
« Reply #2 on: February 07, 2005, 12:43:39 PM »

compuboy1010,

Do something like this, if you have not set your locale (example for Korean fonts):

$ LANG=ko_KR.UTF-8 amule &

Use the appropriate LANG value for the fonts you want to see, and do not forget to install these fonts.

Cheers!
Logged

volpol

  • Evil KDE Hater
  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 43
Re: Display Asian characters in amule
« Reply #3 on: February 07, 2005, 12:48:30 PM »

it's enough if the locale is utf8 based. my locale is en_US.UTF8 and i still can input and see CJK characters. amule should be linked to gtk2 wxGTK2.5.3 ansi. unicode doesn't work (unless you tweak the code).
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: Display Asian characters in amule
« Reply #4 on: February 07, 2005, 01:45:47 PM »

Why unicode doesn't work? Works here. But you need to link aMule against a unicoded wxGTK-2.5.3. You will probably have to compile it yourself. I do like this:

$ ./configure --enable-debug --disable-optimise --enable-debug_flag --enable-debug_info --enable-debug_gdb --enable-gtk2 --enable-unicode --prefix=/usr/local/wxWidgets-cvs
$ make
$ su
$ make install

You will probably want to use /usr/local in --prefix, instead of the one I use.

Cheers!
Logged

volpol

  • Evil KDE Hater
  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 43
Re: Display Asian characters in amule
« Reply #5 on: February 07, 2005, 01:53:24 PM »

unicoded wxGTK2.5.3 never worked for me. unless i change
Code: [Select]
static wxCSConv aMuleConv(wxT("iso8859-1")); to
Code: [Select]
static wxCSConv aMuleConv(wxT("UTF-8")); in otherfunctions.h
 phoenix, did you test it with CJK characters? because i guess ISO8859-1 set is fine.
« Last Edit: February 07, 2005, 01:54:59 PM by volpol »
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: Display Asian characters in amule
« Reply #6 on: February 07, 2005, 02:15:58 PM »

volpol,

Just tell me what to do to test, and I will test. What fonts do I have to install and what locale do I have to set?

Cheers!
Logged

volpol

  • Evil KDE Hater
  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 43
Re: Display Asian characters in amule
« Reply #7 on: February 07, 2005, 03:05:03 PM »

locale: any utf8 based one: (in my case en_US.UTF8 )
font: kochi
search string (so that you don't have to input it yourself) is in the attached file.
couldn't find a way to post it here.
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: Display Asian characters in amule
« Reply #8 on: February 07, 2005, 03:43:59 PM »

I see what you mean. I get anything but the string I started with. But it is not that UNICODE search does not work. It's UTF-8 search that does not work :D

I can't touch this code, I once suggested changing all to UTF-8, but I was told that this would break ed2k network rules. Maybe Kry can explain this better to you.

Cheers!
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Display Asian characters in amule
« Reply #9 on: February 07, 2005, 05:32:00 PM »

I have this fixed on my local aMule, but didn't commit it yet 'cos I'm looking for a different approach. But I can assure you it works here ;)


Gimme 1 or 2 days to commit it properly.
Logged

volpol

  • Evil KDE Hater
  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 43
Re: Display Asian characters in amule
« Reply #10 on: February 07, 2005, 05:48:22 PM »

@kry:
take your time. it does work with ansi build of wxGTK so no hurry.
@phoenix:
yes, that's what i meant. sorry, i forgot to explain. it's been a long while since i last tried unicode wxGTK build so i just forgot what was wrong.
i hope the question of the original poster is now answered  ;)
Logged