[SL] Re: Character encoding problem

On Thu, May 29, 2003 at 09:04:23PM +0300, Mufit Eribol wrote:
> I have a long time character encoding problem with sql-ledger.
> 
> Problem: Browsers (ie, konq, mozilla) cannot automatically encode the page 
> generated by the sql-ledger scripts properly. Manual select of encoding on 
> the browser is necessary at each page.
> 
> Relevant data: Source of html pages generated by the sql-ledger scripts shows 
> the correct charset value (ISO 8859-9 in my case) in the META tag.
> 
> AFAIK, the charset value in the html META tag should be sufficient for 
> browsers to understand the character encoding of the page correctly. No 
> matter what I did, the problem persists.

I have not had to deal with non ASCII charsets so I can't be much help 
there.
 
> BTW, there is no a start "<html>" tag at the beginning of the html codes 
> generated by sql-ledger scripts. Could it be the cause of the problem?

Your right, it doesn't seem to put in a start <html> tag. I don't see 
anyway that that could be a good thing.

Try adding it and let me know if it cures your problem.

To add it you will have to open the SL/Form.pm file in you sql-ledger 
installation with a text editor that uses UNIX line endings and add the 
<html> tag at line 221. That should take care of all the pages that 
sql-ledger generates.

-- 
Tony Fraser -- System Admin (CCNA)
Email:   tony@xxxxxxxxxxxxx
Webpage: http://www.sybaspace.com/
Phone:   (250) 748-0818 ext. 28

Other related posts: