hi all

problem solved by using the suggestion of 'Herve Saint-Amand' with some 
alteration on the code type.
i declared the utf8 as the type of coding for all pages (utf8, windows-1256, 
none, ...) as following:

my $html = decode('UTF-8', $res->content);

but I'm not sure if it is going to work ok with other coding or with none 
mentioned charset on the webpage.
any suggestion?


best regards

musa ghurab



----------------------------------------
> Date: Wed, 6 Aug 2008 10:29:16 -0700
> From: [EMAIL PROTECTED]
> Subject: Re: [Moses-support] web-based coding problem?
> To: [EMAIL PROTECTED]
> 
> Can you show me the URL of the page where you're trying to run the script?
> 
> Herve
> 
> 
> --- On Wed, 6/8/08, musa ghurab  wrote:
> 
>> From: musa ghurab 
>> Subject: Re: [Moses-support] web-based coding problem?
>> To: [email protected]
>> Date: Wednesday, 6 August, 2008, 7:26 PM
>> thanks to all
>> but now what i can do to solve this problem?
>>  
>> i could not solve it.
>>  
>>> Date: Wed, 6 Aug 2008 18:06:36 +0100> From:
>> [EMAIL PROTECTED]> To: [EMAIL PROTECTED]>
>> Subject: Re: [Moses-support] web-based coding problem?>
>> CC: [email protected]>> 2008/8/6 musa ghurab
>> :>> i'm tring to
>> translate first page of www.aljazeera.net (windows-1256
>> but>> other links from main page are utf8)>
>>>>> Not when I looked at it - it was in UTF-8.
>> Sure, it had a line that> declared this:> > http-equiv="Content-Type" 
>> content="text/html;
>> charset=windows-1256">> but the
>> 'Content-Type' HTTP header really says:>
>> Content-Type: text/html; charset=utf-8>> That's
>> the one to trust, because that's the one browsers
>> obey.>> HTH
>> _________________________________________________________________
>> Connect to the next generation of MSN Messenger 
>> http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline_______________________________________________
>> Moses-support mailing list
>> [email protected]
>> http://mailman.mit.edu/mailman/listinfo/moses-support

_________________________________________________________________
Discover the new Windows Vista
http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE
_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support

Reply via email to