Maian Script World on Facebook Maian Script World on Twitter Maian Script World - Latest News Maian Script World on YouTube Maian Script World on LinkedIn


Please Read

You are required to register before you can post. This is via a custom verification system. Please post any problems you are encountering here and I`ll do my best to respond as soon as I can. Please note that a reply WILL be posted to all queries, so do not double post. There are no guarantees when a reply will appear but I do my best to answer all within 3/4 days max. Bumping topics won`t make the slightest difference.

IMPORTANT: Posts in English ONLY please, thank you! Any other languages will be ignored and your message deleted.
SEARCH: Use the search option to see if your question has been answered on the forum before. Or check the relevant script docs.
CUSTOMER: If you have purchased a commercial version of any of my software, using the contact option at the licence centre ensures a faster response.
AUTO DELETION: Accounts older than 5 days, with no posts or topics, are automatically deleted. Only register if you are thinking of posting.
PRIVATE MESSAGES: Private messages are currently disabled.
LINKS: Any links posted are 'NOFOLLOW' and will not be picked up by search engines.

You are not logged in.

#1 19-02-2009 23:12:33

gosain
Members
Registered: 19-02-2009
Posts: 4

captcha image does not show when asian language (hindi) file selected.

First of all, thank you for sharing this nice piece of script which does everything which it is intended to do. While trying it out locally on my computer using XAMPP, i am facing a problem with language part.

I have created a language file in Hindi using IndicIME and for characters in it to show properly I created/typed in Notepad and saved as UTF-8 format. Now when I select this hindi.php from Language option at all the forms I do not see Captcha image for validation. Now, the irony is that I know the reason why this problem is there but I can not seem to find a way to solve it.

What I understand is that the reason of this problem is those extra characters saved in the header of hindi.php file when saved as UTF-8 instead of Ansi (default) format and because of these extra characters in file header the session is destroyed or already started before the Captcha class file is included, please correct me if I am wrong.

Again when I save hindi.php as Ansi format the Captcha image starts showing up BUT instead of proper asian language (hindi) characters I only see question marks (?) every where.

In FireFox the website is showing only with the Captcha image problem as mentioned above but in Internet Explorer 7 I am getting following error:

Warning: Cannot modify header information - headers already sent by (output started at xxxxxx\weblog\web\lang\hindi.php:1) in xxxxxx\weblog\web\admin\inc\functions.inc.php

With the above it is confirmed that the problem is due to saving of language file in ANSI format.

Please help me to sort out the problem as UTF-8 encoding in html files is a necessity to show Asian and other languages also I presume.

If you wish I can send you my hindi.php and if my problem is solved it would be great to see to become part of Weblog and may be very helpful for all the users who want to have their Weblog in hindi.

Thanks.

Last edited by gosain (19-02-2009 23:53:01)

Offline

#2 21-02-2009 10:03:44

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,062

Re: captcha image does not show when asian language (hindi) file selected.

Thanks for the information. I do plan on removing the captcha from my scripts and adding this one:

http://www.phpcaptcha.org/

I`m not actually sure about the captcha problem to be honest, so I don`t think I can help. You might want to try using the above captcha instead as that can read from a word list.

David.


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

#3 25-02-2009 19:32:24

gosain
Members
Registered: 19-02-2009
Posts: 4

Re: captcha image does not show when asian language (hindi) file selected.

Hi Admin,

In the past I had reported two problems: 1) Asian Language problem and 2) Captcha spacing problem
The problem reported here in this topic has got nothing to do with Captcha and is purely related to using UTF-8 characters in language file. Please do let me know if there is explanation required apart from what I had reported above earlier.

Thanks.

Offline

#4 28-03-2009 06:18:37

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,062

Re: captcha image does not show when asian language (hindi) file selected.

Sorry I didn`t get back to you again regarding this. Been to busy.


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

#5 22-04-2011 15:00:45

Klauwaart
Members
From: United Kingdom (Great Britain)
Registered: 22-10-2007
Posts: 184

Re: captcha image does not show when asian language (hindi) file selected.

I am not sure whether or not it has got anything to do with the Hindi translation.

The captcha does not show on my English page, nor on my freshly translated Dutch page.
Where (I assume) the Captcha is to appear, ie. just below the text entry field, it just shows: "Enter Security Code", and the same equivalent in Dutch.
So, i assume there might be a fault with placing the image in the right place or somehing.

I use version 4.0.

Offline

#6 23-04-2011 05:38:05

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,062

Re: captcha image does not show when asian language (hindi) file selected.

Klauwaart wrote:

I am not sure whether or not it has got anything to do with the Hindi translation.

The captcha does not show on my English page, nor on my freshly translated Dutch page.
Where (I assume) the Captcha is to appear, ie. just below the text entry field, it just shows: "Enter Security Code", and the same equivalent in Dutch.
So, i assume there might be a fault with placing the image in the right place or somehing.

I use version 4.0.

Do you have the GD graphics library enabled on your server? Check that first. Without that the captcha`s will never load.


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

#7 23-04-2011 08:51:19

Klauwaart
Members
From: United Kingdom (Great Britain)
Registered: 22-10-2007
Posts: 184

Re: captcha image does not show when asian language (hindi) file selected.

Yes, checked that via the phpinfo() command.
GD2 is enabled, Freetype, etc, it is all there.

Offline

#8 24-04-2011 07:57:55

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,062

Re: captcha image does not show when asian language (hindi) file selected.

Ok, just wondered. Possibly an issue with the captcha code then.


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

#9 24-04-2011 08:55:53

Klauwaart
Members
From: United Kingdom (Great Britain)
Registered: 22-10-2007
Posts: 184

Re: captcha image does not show when asian language (hindi) file selected.

OK.
So, it might be best to disable Captcha for now then, other wise people can't post (or me, for that matter).

Offline

#10 25-04-2011 06:57:27

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,062

Re: captcha image does not show when asian language (hindi) file selected.

Ok, sorry about that.


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

#11 25-04-2011 10:26:16

Klauwaart
Members
From: United Kingdom (Great Britain)
Registered: 22-10-2007
Posts: 184

Re: captcha image does not show when asian language (hindi) file selected.

I think I am the one who should apologise (or maybe my webhost).

This morning, everything was there as it should be.
(See my post in Maian Greetings, which explains a bit more about that).

Offline

#12 25-04-2011 16:49:44

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,062

Re: captcha image does not show when asian language (hindi) file selected.

Great news. smile


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

#13 18-09-2011 23:34:58

duceduc
Members
From: Japan
Registered: 25-05-2010
Posts: 359

Re: captcha image does not show when asian language (hindi) file selected.

It seems  I am also having trouble displaying the captcha code image when I select a different language as well. The english works fine though.

Offline

#14 19-09-2011 06:45:45

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,062

Re: captcha image does not show when asian language (hindi) file selected.

duceduc wrote:

It seems  I am also having trouble displaying the captcha code image when I select a different language as well. The english works fine though.

Hmm, not sure what would cause this. The language file shouldn`t cause any problems I wouldn`t have thought.


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

#15 19-09-2011 11:13:27

duceduc
Members
From: Japan
Registered: 25-05-2010
Posts: 359

Re: captcha image does not show when asian language (hindi) file selected.

This is weird. The op is correct. If I convert back to ansi from utf-8, the captcha code image is viewable. However, the language pack file having special characters shows symbols, but is viewed fine over the browser.

David, I can resend you the file again or you can convert it to ansi before uploading it.

Offline

#16 19-09-2011 20:09:49

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,062

Re: captcha image does not show when asian language (hindi) file selected.

Yes, sure, that would be fine.


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

Board footer

2Checkout.com is an authorized reseller of goods and services provided by Maian Script World.© 2003-2013 David Ian Bennett. All Rights Reserved | Forum: FluxBB

Privacy Policy | Refund Policy