Re: Re: imagettftext and utf-8 (swedish characters)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Feb 29, 2008 at 12:59 PM, Jochem Maas <jochem@xxxxxxxxxxxxx> wrote:
>  it does because he's passing the title as an argument to the image script:

    I would say that's what I get for skimming, but look here:

>  <form action="/index.php/slides/upload" method="post" accept-charset="utf-8">

    The form accepts (expects) UTF-8 (though the OP may be better with
`latin1_swedish_ci`).

    Page encoding would only come into play here if the data was
written as an HTML string.  Form elements generally don't give a damn
how the rest of the page is configured, because their job is only to
be a container to pass POST and GET data to the server (which, again,
couldn't care less what the previous page's encoding was prior to
receiving the new data).

    The only places it will matter in this case, and in order, are:
        1.) The FORM element (properly configured)
        2.) The browser's capability to send data encoded in the
desired encoding (likely true with the OP)
        3.) The server's ability to handle the encoding (again,
properly configured, according to David)

    Thus, it leads me back to my previous guess that the font he chose
(georgia.ttf) doesn't have Swedish characters in the set.  With that,
I'm not sure, though, because I don't have the Georgia font pack on
here, so it'll have to stay as a guess for now.

-- 
</Dan>

Daniel P. Brown
Senior Unix Geek
<? while(1) { $me = $mind--; sleep(86400); } ?>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux