You are here: Re: echo RAW data from unicode page? « PHP Programming Language « IT news, forums, messages
Re: echo RAW data from unicode page?

Posted by Andy Hassall on 09/29/05 21:43

On 28 Sep 2005 16:42:04 -0700, koteika@gmail.com wrote:

>How can I print raw data (string) from a UTF-8 .php file?

OK, first things first - what do you define as a "UTF-8 .php file"?

>Simple
>
>echo $var
>
>ouputs unicode string to browser (with unicode prefix bytes), but if I
>want to ouput BLOB data (jpeg file)?

You just output it. PHP knows very little about character encodings in the
first place; when you print, it always prints raw bytes. How they're
interpreted by the client depends on the Content-type header sent to the
browser.
--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация