aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: UTF-8 links do not displayed correctly  (Read 2879 times)

akkdx

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
UTF-8 links do not displayed correctly
« on: June 24, 2010, 06:32:58 PM »

I have been using TomatoUSB + optware amule in my router without problem.

Now, I set up a small x86 PC using Debian Squeeze. I use the same client PC (WinXp) with amulecmd to add download links remotely. When added to the router, Chinese filenames displayed correctly in AmuleGUI, but when added to the x86 PC, the filenames are displayed something like [飞屋环游记].

Moreover :
1. If I "copy link location" in FireFox and paste into the eD2k link text box of the AmuleGUI, the filename is not  displayed correctly.
2. If I "Serarches", then select  "Download" from the searched result, the filename is correct !

What setting I have missed in the x86 PC ?
Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: UTF-8 links do not displayed correctly
« Reply #1 on: June 27, 2010, 08:14:17 AM »

Which aMule version are you using?
Logged
concordia cum veritate

akkdx

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
Re: UTF-8 links do not displayed correctly
« Reply #2 on: June 27, 2010, 05:03:05 PM »

Debian Squeeze : amule-daemon (2.2.6+debian0-8)

http://packages.debian.org/squeeze/amule-daemon
Logged

akkdx

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
Re: UTF-8 links do not displayed correctly
« Reply #3 on: June 30, 2010, 11:23:25 AM »

Very strange !

I put the link directly into .aMule/ED2Klink by a PHP script, the file name are displayed correctly.


<?php
    define(ED2K_FILE, '/mnt/usb/transmission/.aMule/ED2KLinks');
   
    $link = $_POST['link'];
    if ($link != null){
   //$link = urldecode($link);      // some web page said it is needed, no need as I tested
   for($i=1;$i<30;$i++){
      if (!file_exists(ED2K_FILE)){
         break;
      }
      usleep(500000);   // sleep 0.5s
   }
   $fh = fopen(ED2K_FILE, 'a') or die("can't open file");
   fwrite($fh, $link .'\n');
   fclose($fh);
    }
    echo '1';
?>
Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: UTF-8 links do not displayed correctly
« Reply #4 on: July 02, 2010, 02:09:42 AM »

Could you please send me the offending link in PM? Also, does the same link work on your router but not on the PC?
Logged
concordia cum veritate

akkdx

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
Re: UTF-8 links do not displayed correctly
« Reply #5 on: July 06, 2010, 09:30:57 AM »

For example, this link :

Link removed. Please don't post aMule links in the forums.

works on my router (optware), but not the small x86 (Debian Squeeze).
« Last Edit: July 06, 2010, 11:10:37 AM by ^marcell^ »
Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: UTF-8 links do not displayed correctly
« Reply #6 on: July 06, 2010, 12:44:35 PM »

Please send me the link in PM (=Personal Message) or in e-mail.
Logged
concordia cum veritate