Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Excerpts, Read more, Pagination (http://forum.bytesforall.com/forumdisplay.php?f=20)
-   -   Special Characters for French are not displayed (http://forum.bytesforall.com/showthread.php?t=8447)

shirley1 Jul 22, 2010 04:41 PM

Special Characters for French are not displayed
 
Hi

I have two blogs with wordpress 3. One with the wordpress theme by default (Blog1) and the other other with atahualpa 3.5.1 theme (blog2).

With the blog2 , i can not see the special french characters in my homepage.However in the blog1 I can see these french characteres.

My wordpress and atahualpa is in english . I've put the french po,mo in wordpress/content folder. I don't use the atahualpa french files .



Thanks

lmilesw Jul 22, 2010 07:38 PM

Does this problem only occur when viewing excerpts?

shirley1 Jul 23, 2010 06:23 AM

Yes, only with the excerpts.
I've tested with « read more» and it works well.

lmilesw Jul 23, 2010 06:48 AM

What's happening is you have some non-printing characters that are causing problems. WordPress by default strips html tags from from excerpts. Atahualpa has a setting in ATO>Configure EXCERPTS to only show excerpts or full posts on various pages. You can set this to show full posts and the issue goes away. I have no way to experiment but perhaps there is something you can add to Don's strip these tags? to fix it as well.

If you PM me a login and password I could take a look.

paulae Jul 23, 2010 08:23 AM

I have a similar problem, and I'm sure it's Wordpress, not the theme. I want to use the word puree with the acute accent in the body of a post and in the headline. It works fine in the body but not in the headline. Obviously, Wordpress is stripping out the diacritical marks in the headline.

I'll research it at wordpress.org, but if anybody has a quick fix, I'm all ears.

UPDATE:

OK, I found the solution to my problem. While you can use the Omega icon to bring up special characters in Tiny MCE Advanced and then paste them within a post in Visual mode, to add one to the headline, you must switch to HTML mode. You paste in the special character, and when you publish, you'll see the special character. Voila! http://www.larchmontgazette.com/dine...sparagus-soup/

lmilesw Jul 23, 2010 08:38 AM

And I have tried those same characters in both the body and the title and they show just fine in both excerpts and full text. I am using the ascii code to insert them. Is that how you are as well Paula? How about you Shirley?

paulae Jul 23, 2010 08:44 AM

I'm using the HTML code, as in
Code:

é
.

lmilesw Jul 23, 2010 08:57 AM

If I use the html code I get the same results as you Paula. If I use for example alt+130 to use the ascii code for the eacute; it works fine.

paulae Jul 23, 2010 08:59 AM

Good to know, Larry. But my way, I don't have to keep a cheat-sheet handy. :)

shirley1 Jul 23, 2010 09:48 AM

The problem is only with the character « ŕ ». the ascci code is ALT+133. I've used the omega icon to insert it and it does not work neither with the ascci code.

Also I have a french keyboard.

It is only with the excerpts. It is an intranet i can not sent you the link. My client wants the excerpts in the home page :( .

Update : The problem is only with the excerpts, title, full post is ok. I've used the fonction «Dont strip» <p><a><span><em> but i have the same results.

paulae Jul 23, 2010 10:01 AM

Shirley, I am using WP 3.0 and Atahualpa 3.5.3. Look at the first excerpt at http://www.larchmontgazette.com/. I was able to use the e-acute code when I created the post, but I was in HTML view at the time.

shirley1 Jul 23, 2010 11:04 AM

The problem is with the character « ŕ ».

paulae Jul 23, 2010 11:12 AM

I just tested that character in the same excerpt, and it worked fine. I can't leave it there because it's a live site, and the post's author would be upset to find this random character there!

Are you sure you're using HTML mode when creating the post? Be sure to publish from that mode, don't switch back to the visual editor first.

lmilesw Jul 23, 2010 01:33 PM

I have to work at it to get the html characters to show and then when I refresh all is good. I have no clue unless it is on the server. Could the php version have anything to do with it? How about the host? I would need to test on a site where the problems are occurring.

paulae Jul 23, 2010 01:42 PM

Larry, would WP 3.0 even run without PHP 5?

lmilesw Jul 23, 2010 02:05 PM

I think so but with "issues". I recently replaced an old Joomla site with a WordPress site and the site wasn't quite "right" I checked the php version and it was set to 4. I am not sure though whether I had WP 2.9.2 or 3 installed at the time. This was really just a shot in the dark and something easy to check. I'm scratching my head on this one.

shirley1 Jul 23, 2010 06:37 PM

I have php 5 and mysql 5.

What is the function that works with the excerpts in the home page? Maybe I need to modify something there. :(

lmilesw Jul 23, 2010 08:29 PM

There is a section in the ATO for excerpts

shirley1 Jul 24, 2010 07:55 AM

I mean in the code. Maybe I have to modify the php code . I want to add that I have a windows server and i've tried at home (windows xp) I got the same result.

lmilesw Jul 24, 2010 07:59 AM

I have no idea how a Windows server might affect WordPress and I pretty much stay out of the code as than makes upgrading the Theme more cumbersome as you have to remember all the changes. That is to say nothing about finding the code in the first place.

paulae Jul 24, 2010 07:59 AM

If it works for me on a live site, it should work for you. I can't see any PHP reason for just that one character not working. You've tried other special characters using the method I outlined above?

shirley1 Jul 24, 2010 08:29 AM

Have you both tried with the character « ŕ » in the excerpt in the visual editor without using the html code ? Maybe it is dificult since you don't have a french keyboard.

Well, I've tried the html editor and in the excerpts I've put &agrave;. and voila! it works.

However my client is not a technical person for that reason I wanted that he uses the visual editor.

I've just bought a shared linux hosting plan and i will see how it works.

lmilesw Jul 24, 2010 08:34 AM

Well it seems likely that it is just how the keyboard "codes" the « ŕ » but at least you have a work around albeit not the simplest way.

paulae Jul 24, 2010 09:06 AM

I'll bet the French keyboard produces the ascii code, not HTML, so it wasn't getting interpreted properly by Wordpress. This is an inherent problem for a client like yours, I guess. Have you looked in the wordpress.org forums for ideas? This can't be the first time this problem has appeared in the WP community.

To help your client, you could write out a step-by-step process for inserting the proper HTML code. Or this could be an opportunity for you to have a maintenance contract, where you'll have to come in and fix his grave accents when he needs one! :p

shirley1 Jul 24, 2010 06:31 PM

I've been doing my test using Atahualpa 3.4.9 before someone told me to use the new version 3.5.3.

I've just changed the theme of my blog and with atahualpa 3.4.9 it works!!!. The excerpts works.

So it means there is something rare in Atahualpa 3.5.3. Maybe the excerpts functions are not the same ?

Any clue ? I would love to use the latest version of Atahualpa.


All times are GMT -6. The time now is 03:17 PM.

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