I've added to a plugin in staticpages utf-8 a translation to my on language(pt) everything is working ok but, after i login and inside my Admin area a try to add for eg. a new static page or anything else it sends me back to login page.But if i remove or change the name of the translated file it works well again.
How can i resolve this please?
Small Problem
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Small Problem
Hi!
Can you check your custom language file if you have any characters after the last ?> or before the first <?php? Any linebreaks, or even UTF-8 BOM Bytemarks can disturb the whole page flow.
Regards,
Garvin
Can you check your custom language file if you have any characters after the last ?> or before the first <?php? Any linebreaks, or even UTF-8 BOM Bytemarks can disturb the whole page flow.
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Re: Small Problem
Hi, Garvin, i don't see any thing befour or after php tags, i've uploaded the file maybe you can see the problem.
Regards,and thanks for your help.
Regards,and thanks for your help.
- Attachments
-
lang_pt.inc.rar- (3.37 KiB) Downloaded 291 times
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Small Problem
Hi!
Indeed your file contains the 3-byte UTF-8 BOM at the start. Most editors hide this from you, so you specifically need to save the file in "UTF-8 Format WITHOUT BOM". Or use a linux editor like vim, joe to strip the first 3 bytes.
Sadly this is a problem/error with PHP itself, as it cannot deal with UTF-8 BOM - so it's not really Serendipity related.
Regards,
Garvin
Indeed your file contains the 3-byte UTF-8 BOM at the start. Most editors hide this from you, so you specifically need to save the file in "UTF-8 Format WITHOUT BOM". Or use a linux editor like vim, joe to strip the first 3 bytes.
Sadly this is a problem/error with PHP itself, as it cannot deal with UTF-8 BOM - so it's not really Serendipity related.
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Re: Small Problem
Hi
Ok thanks, always learning.
Ok thanks, always learning.