If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
UTF-8 support in Advanced Poll 2.03  XML
Forum Index » Support Forum
Author Message
clandestino_bgd
Newbie

Joined: 20/12/2005 15:05:54
Messages: 3
Offline

Hello people.
I have made web site in Serbian language (cyrillic) which demands UTF-8 support.
I have tried to entered cyrillic letters in poll administration, but it seems like it does not support it.
Do you have any hint how to overcome this problem.
It is very urgent.

Thank you in advance!
Kind regards
Milan
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

Add


to the head section of the html.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
clandestino_bgd
Newbie

Joined: 20/12/2005 15:05:54
Messages: 3
Offline

I have not managed to do that.
Here is the description:
My HTML page where I invoke Advanced Poll script 2.0.3 looks like this:

<HTML>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<BODY>
<!-- This PHP code includes the poll in your page (So you can SEE it). Place this where you want the poll to be displayed -->
<?php
include_once "booth.php";
echo $php_poll->poll_process("newest");
?>
</BODY>
</HTML>

However, if I create new poll in admin section and enter all cyrillic characters (for poll question and options), options are rendered well, but question are not. Instead of valid cyrillic characters I get:
Ко ће бити првак &#108

Any hint?
Thank you
Kind regards
Milan
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

You have to make the admin section utf-8 as well otherwise the charset of the stored data wil conflict with the output.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
clandestino_bgd
Newbie

Joined: 20/12/2005 15:05:54
Messages: 3
Offline

Thank you.
Actually there are two files where utf-8 charset should be specified:
1. the php file (embedded in web site) which invokes advanced poll php script
2. language specific php inside lang folder e.g english.php.

Kind regards
Milan
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

Basically every page on your site needs to be using the same charset.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum