EXIF-information on non-english UTF-8-sites

Phoca Gallery - image gallery extension
ecolora
Phoca Member
Phoca Member
Posts: 10
Joined: 08 Apr 2011, 09:01
Location: Krasnoyarsk
Contact:

EXIF-information on non-english UTF-8-sites

Post by ecolora »

Correct code of Your component, please:

in file components\com_phocagallery\views\info\tmpl\default.php

after

Code: Select all

defined('_JEXEC') or die('Restricted access');
add

Code: Select all

header("Content-type: text/html; charset=utf-8");
I owner of Russian site and without this changing all exif information shown like '??????'

I wrote here about enabling exif and removing this bug with encoding.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49172
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: EXIF-information on non-english UTF-8-sites

Post by Jan »

Hi, thank you for the info, but the utf-8 should be set by Joomla! resp. template with:

Code: Select all

<meta http-equiv="content-type" content="text/html; charset=utf-8" />
Doesn't this work?
If you find Phoca extensions useful, please support the project
ecolora
Phoca Member
Phoca Member
Posts: 10
Joined: 08 Apr 2011, 09:01
Location: Krasnoyarsk
Contact:

Re: EXIF-information on non-english UTF-8-sites

Post by ecolora »

No, it is not work for me. I wrote in first message what i am doing to correct the problem. Can You do it? Thank You!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49172
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: EXIF-information on non-english UTF-8-sites

Post by Jan »

Hi, yes I see your post above, I only tries to discover if this is really necessary to set header in some of the php file which is a part of Joomla! output where Joomla! itself defines the header - as utf-8
If you find Phoca extensions useful, please support the project
Post Reply