Dosya UTF-8 ise ANSI eğer PHP image_jpeg yok 'iş, işleri

0 Cevap php

I use this class to crop, resize my image: http://www.phpclasses.org/package/4268-PHP-Resize-crop-rotate-flip-flop-and-grey-images.html

Bu GD kullanır. Sorun örneğin bu yapmak olduğunu:

$img = new ImageTransform;
$img->view('resize', 'foo.jpg', '500x400', true); // true argument is $cache = true

Now I can just point

<img src="that_script.php" alt="" />
and it will show that image resized. But it doesn't if all my files are UTF-8! Only if they ALL are ANSI encoded. The image simply won't display if some or all files are encoded UTF-8. If i remove headers.. and just let it print all the things... I can see all funny characters... so it's printing something! But it just won't print the actual image with headers...

In the PHP documentation I found someone write this: http://no.php.net/manual/en/function.imagejpeg.php#96796

WARNING for those who use utf-8 scripts: Before going crazy like me for a whole day and digging around configuration files etc.

Image_jpeg kullanarak DİREKT Tarayıcınız ÇIKIŞ i yerine utf-8 ANSI benim komut kaydettikten sonra çalıştı

Bu yüzden PHP ile yanlış bir şey olmalı? 5.3.2: PHP sürümünü kullanın

Nobody at PHPClasses complains about something wrong, so I don't think it's the class. But something with PHP. The question is how can I make it work with UTF-8?

Yardımın için teşekkürler!

0 Cevap