Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages » Excerpts, Read more, Pagination »

Special Characters for French are not displayed


  #26  
Old Aug 6, 2010, 11:50 PM
guile
 
1 posts · Aug 2010
Shirley, i have same prolem with char "à", too. T_T
  #27  
Old Aug 9, 2010, 11:24 AM
shirley1
 
65 posts · Jun 2010
If you installed Atahualpa 3.4.9 the excerpt works , but in the 3.5.3 version it does not wokr the «à» , it put an square instead of it.

I hope someone else has a solution for 3.5.3
  #28  
Old Aug 30, 2010, 07:47 AM
JeromeH
 
21 posts · Aug 2010
Any new ideas to get the 'à' working?
  #29  
Old Aug 30, 2010, 07:55 AM
JeromeH
 
21 posts · Aug 2010
update: the 'à' gets displayed correctly if I replace the 'à' with à in the HTML code of the post and then immediately save it (no switching back to HTML mode - it replaces à with an 'à' again = same problem).

but that's not really a solution since there are a lot of 'à' in a lot of posts!! and it's hard to tell people to manually replace the 'à' with à in their HTML code ...

any other ideas?
  #30  
Old Sep 1, 2010, 05:23 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
JeromeH - can you give the url of your site and point to a post with the issue?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #31  
Old Sep 7, 2010, 07:50 AM
JeromeH
 
21 posts · Aug 2010
Hi, the site isn't live/public yet so I can't give you a link. But I've taken a screenshot:



Note the black diamond in the excerpts. They don't show in the full posts.
  #32  
Old Sep 7, 2010, 08:20 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Jerome, would you be willing to do a database backup and email it to me?maybe I can recreate it with your data.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #33  
Old Oct 17, 2010, 02:33 PM
valembois
 
1 posts · Oct 2010
Crasy, i were coming crazy with this error.
I found a way to avoid the problem by changing the expression in the preg_split function.
Look like to be a problem with this php function.

So in the function bfa_wp_trim_excerpt($text) (you can find it in function php of the theme)

You change twice the argument of the preg_split call.

// OLD $words = preg_split("/\s+/", $text);
$words = preg_split("/[ \r\t\f\n]+/", $text);

  #34  
Old Oct 19, 2010, 01:25 AM
jmc34
 
19 posts · Oct 2010
I tried this, but unfortunately it does not do the trick for me...

First, the excerpts do now contain the images (they were stripped off by the initial version of the code).

Then I cannot figure out why, but one of my agrave is still showing funny... Please have a look.


I tried this with the default WP theme (twenty-ten 1.1) and all my "à" look fine.

I am using WP 3.0.1 and Athualpa 3.5.3

Any help will be much appreciated.

Jean-Michel

Last edited by jmc34; Oct 19, 2010 at 01:27 AM.
  #35  
Old Oct 29, 2010, 04:36 PM
tmarien
 
2 posts · Oct 2010
Hello juggledad ...

we're having the same issues here ... our site is live at http://ttnff.selfip.com, should you still be interested in seeing it "live".

The "diamonds" are visible in Firefox, in IE they appear are squares.

I've tried the recommendations in this thread, with varying levels of success - none however fixes the "issue" completely.

Tom.
  #36  
Old Oct 30, 2010, 04:13 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
can you point to a post with the issue?
p.s. in the photos 'Iceland 2010' second photo - is that your daughter? Why are teenagers the same the world over - 'looks' over 'comfort'?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Last edited by juggledad; Oct 30, 2010 at 04:18 AM.
  #37  
Old Oct 30, 2010, 07:10 AM
tmarien
 
2 posts · Oct 2010
Juggledad,

bright-eyes in the second photo is my cousin's daughter; mine is the toddler.

If you switch the language to french on the homepage, you will see most excerpts (and only the excerpts) have the "funny characters" described in this thread.

What's boggling me however is that overnight they changed from the black diamond with "?" to the squares with "FR".

Anyway, would be nice to have your view on this.
  #38  
Old Oct 30, 2010, 07:32 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
I copied the first post in 'french' and posted it into my test site, but both the excerpts and full post is fine.

what is the plug-in you have to switch languages? Would you let me in to poke around. I'd like to get a dump of your database and see if I can recreate it. If so send me a PM with an admin ID and PW or do an sql export of the db and email it to me.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #39  
Old Nov 9, 2010, 06:44 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
tmarien
can you send me your nl_NL.mo and fr_FR.mo files?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #40  
Old Jan 5, 2011, 09:44 AM
shirley1
 
65 posts · Jun 2010
Hi

I've just updated to the new theme atahualpa 3.6 but i have the same issue. I can send you the backup of my database to your personal email if you don't mind.
  #41  
Old Jan 6, 2011, 05:38 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
there was a change in how excerpts are handles in 3.5.3 - the code was changed from using a php 'explode()' to a php 'preg_split()'. I'm wondering if the preg_split is causing the issue.

With this in mind I have a test for you to run.
1) download the attached file, unzip it
2) edit the file (USING A TEXT EDITOR) and change the text 'this is a string' to something with french characters - make sure to keep the single quotes around it
3) save it and upload it to the atahualpa folder
4) create a new page called 'test'
5) assign the template 'pmwtest' to the page
6) publish the page - you can make it private, just note the url
7) view the page and see if there is any difference in the two tests - send me the url so I can look also.
pmwtest.php.zip
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #42  
Old Jan 6, 2011, 06:56 AM
shirley1
 
65 posts · Jun 2010
My blogue is in the intranet. I can not give you the link.

I have the error when i want to see the new page.

Fatal error: Cannot redeclare bfa_get_options() (previously declared in D:\www\blog\wp-content\themes\atahualpa\functions\bfa_get_options .php:2) in D:\www\blog\wp-content\themes\atahualpa\functions\bfa_get_options .php on line 512
  #43  
Old Jan 6, 2011, 07:38 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
sorry, there looks like there was a change in templates from 3.5.3 to 3.6.0 and I (oops) didn't test it in 3.6.0

replace the first part of the code:
[html]<?php
/*
Template Name: pregtest template
*/
?>
<?php // Do not delete these lines ?>
------
<?php /* get all options: */
include (TEMPLATEPATH . '/functions/bfa_get_options.php');
get_header();

#global $bfa_ata;
// You can start editing below:
?>

with
HTML Code:
<?php
/*
Template Name: pregtest template
*/
 ?>
<?php // Do not delete these lines ?>
<?php # error_reporting(-1);
list($bfa_ata, $cols, $left_col, $left_col2, $right_col, $right_col2, $bfa_ata['h_blogtitle'], $bfa_ata['h_posttitle']) = bfa_get_options();
get_header(); 
extract($bfa_ata); 
// You can start editing below:
?>
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Last edited by juggledad; Jan 6, 2011 at 09:02 AM.
  #44  
Old Jan 6, 2011, 09:20 AM
shirley1
 
65 posts · Jun 2010
Here is the text :

à la une . Dès que jaurais le temps. Étienne

In the file , you will find what i get.

And there is no difference.
Attached Thumbnails
Click image for larger version

Name:	excertp.jpg
Views:	1369
Size:	75.4 KB
ID:	1003  

Last edited by shirley1; Jan 6, 2011 at 09:34 AM. Reason: t
  #45  
Old Jan 19, 2011, 12:22 PM
shirley1
 
65 posts · Jun 2010
can anyone verify this ?

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
fr_FR - French Wolforg Languages & Translations 119 Jan 13, 2017 05:16 PM
French translation cactus02 Languages & Translations 1 Sep 18, 2009 02:45 PM
[SOLVED] I have a problem with my menu bar at the top ! 'I am a French man ) lol CYRILO Sidebars & Widgets 2 Sep 6, 2009 05:53 AM
[SOLVED] What are the &quot;rules&quot; about using special characters in page titles? Shepherd Jim Page & Category Menu Bars 4 Apr 7, 2009 07:03 AM
Widget style causing ugly display of widget list, breaks at special characters wfzimmerman Sidebars & Widgets 1 Mar 20, 2009 03:31 PM


All times are GMT -6. The time now is 02:41 AM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.