|
Title: French accents Post by: Asran on November 24, 2008, 11:10:42 PM Hi!
Lovely module! thank you for that! I am using for a french website and some characters as ?, ? etc... are replaced by strange symbols like: frères as I wanted to "write fr?re". Is there anyway to solve it? Thank you! Bye Title: Re: French accents Post by: Mick on November 24, 2008, 11:23:09 PM Make sure your database is set to the proper mode, I think Latin.
You probably also need to set the language on the CMS backend. Title: Re: French accents Post by: Asran on November 25, 2008, 07:05:35 AM When I put: "AddDefaultCharset utf8" in .htaccess,
The module and the accents work but my website and fireboard do not show the accents anymore but when I put: AddDefaultCharset off, the website and fireboard work, not the shoutbox. I put french as the language on the CMS backend and utf8 in my database, I made a query: SET NAMES UTF8 Thanks for your help. + Title: Re: French accents Post by: Mick on November 25, 2008, 08:39:29 AM So, just to make sure ... is it all working now?
Title: Re: French accents Post by: Asran on November 25, 2008, 08:52:15 AM no, it does not work... sorry, I did not mention it ???
Title: Re: French accents Post by: Mick on November 25, 2008, 11:03:21 AM OK --- At the beginning of your template you probably have something that looks like this:
Code: $iso = split( '=', _ISO ); echo '<?xml version="1.0" encoding="'. $iso[1] .'"?' .'>'; The change that I would suggest as a first attempt to repair this is to replace that code with the following: Code: echo '<?xml version="1.0" encoding="ISO-8859-1"?' .'>'; Hopefully, that takes care of the issue Title: Re: French accents Post by: Asran on November 25, 2008, 04:50:53 PM Are talking about the xml file?
I guess it is that one and I have: Quote <?xml version="1.0" encoding="iso-8859-1"?> <mosinstall type="template" version="1.0.x"> Title: Re: French accents Post by: Mick on November 25, 2008, 05:55:43 PM No, sorry --- the index.php
Title: Re: French accents Post by: Asran on November 25, 2008, 10:10:05 PM There is nothing in it...
Quote <?php /** * @copyright Copyright (C) 2005 - 2007 Open Source Matters. All rights reserved. * @license GNU/GPL, see LICENSE.php * Joomla! is free software. This version may have been modified pursuant * to the GNU General Public License, and as distributed it includes or * is derivative of works licensed under the GNU General Public License or * other free or open source software licenses. * See COPYRIGHT.php for copyright notices and details. */ // no direct access defined( '_VALID_MOS' ) or die( 'Restricted access' ); defined( 'DS') || define( 'DS', DIRECTORY_SEPARATOR ); include_once (dirname(__FILE__).DS.'/ja_vars_1.0x.php'); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <?php mosShowHead(); ?> <script language="javascript" type="text/javascript" src="<?php echo $tmpTools->templateurl(); ?>/js/mootools.v1.11.js"></script> <link rel="stylesheet" href="<?php echo $tmpTools->templateurl(); ?>/css/template.css" type="text/css" /> <link rel="stylesheet" href="<?php echo $tmpTools->templateurl(); ?>/css/typo.css" type="text/css" /> <link rel="stylesheet" href="<?php echo $tmpTools->templateurl(); ?>/css/ja.news.css" type="text/css" /> <script language="javascript" type="text/javascript" src="<?php echo $tmpTools->templateurl(); ?>/js/ja.script.js"></script> <!-- Menu head --> <?php $jamenu->genMenuHead(); ?> <link href="<?php echo $tmpTools->templateurl(); ?>/css/colors/<?php echo $tmpTools->getParam(JA_TOOL_COLOR); ?>.css" rel="stylesheet" type="text/css" /> <!--[if lte IE 6]> <style type="text/css"> .clearfix {height: 1%;} img {border: none;} h1.logo a, span.title-r, #ja-col1-center, .narrow #ja-col1-center, #ja-col1-top, .narrow #ja-col1-top, .title-r {background-position: -1000px;} </style> <![endif]--> <!--[if gte IE 7.0]> <style type="text/css"> .clearfix {display: inline-block;} </style> <![endif]--> <?php if ($tmpTools->isIE6()) { ?> <!--[if lte IE 6]> <script type="text/javascript"> var siteurl = '<?php echo $tmpTools->templateurl();?>/'; window.addEvent ('load', makeTransBG); function makeTransBG() { makeTransBg($$('h1.logo a')); makeTransBg($('ja-col1-top')); makeTransBg($('ja-col1-center'), '', 'scale'); makeTransBg($$('.title-r')); makeTransBg($$('#ja-cssmenu li ul'), '', 'scale', 0, 2); } </script> <![endif]--> <?php } ?> </head> <body id="bd" class="<?php echo $tmpTools->getParam(JA_TOOL_SCREEN);?> fs<?php echo $tmpTools->getParam(JA_TOOL_FONT);?>" > <a name="Top" id="Top"></a> <ul class="accessibility"> <li><a href="<?php echo $tmpTools->getCurrentURL();?>#ja-content" title="Skip to content">Skip to content</a></li> <li><a href="<?php echo $tmpTools->getCurrentURL();?>#ja-mainnav" title="Skip to main navigation">Skip to main navigation</a></li> <li><a href="<?php echo $tmpTools->getCurrentURL();?>#ja-col1" title="Skip to 1st column">Skip to 1st column</a></li> <li><a href="<?php echo $tmpTools->getCurrentURL();?>#ja-col2" title="Skip to 2nd column">Skip to 2nd column</a></li> <li><a href="<?php echo $tmpTools->getCurrentURL();?>#ja-col3" title="Skip to 3nd column">Skip to 2nd column</a></li> </ul> <div id="ja-wrapper"<?php if($tmpTools->isFrontPage()) : ?> class="home-deco"<?php endif ; ?>> <!-- BEGIN: HEADER --> <div id="ja-headerwrap"> <div id="ja-header" class="clearfix"> <?php $siteName = $tmpTools->sitename(); if ($tmpTools->getParam('logoType')=='image') { ?> <h1 class="logo"> <a href="index.php" title="<?php echo $siteName; ?>"><span><?php echo $siteName; ?></span></a> </h1> <?php } else { $logoText = (trim($tmpTools->getParam('logoText'))=='') ? $config->sitename : $tmpTools->getParam('logoText'); $sloganText = (trim($tmpTools->getParam('sloganText'))=='') ? JText::_('SITE SLOGAN') : $tmpTools->getParam('sloganText'); ?> <h1 class="logo-text"> <a href="index.php" title="<?php echo $siteName; ?>"><span><?php echo $logoText; ?></span></a> </h1> <p class="site-slogan"><?php echo $sloganText;?></p> <?php } ?> <?php if( mosCountModules('user4') ) { ?> <div id="ja-search"> <?php mosLoadModules('user4', -1) ?> </div> <?php } ?> </div> </div> <!-- END: HEADER --> <!-- BEGIN: MAIN NAVIGATION --> <div id="ja-mainnavwrap"<?php if ($hasSubnav) { ?> style="height: 60px;"<?php } ?>> <div id="ja-mainnav" class="clearfix"> <?php $jamenu->genMenu (0); ?> </div> <?php if ($hasSubnav) { ?> <div id="ja-subnav" class="clearfix"> <?php $jamenu->genMenu (1,1); ?> </div> <?php } ?> <!-- BEGIN: USER TOOLS --> <?php if ($tmpTools->getParam(JA_TOOL_USER)) { ?> <div id="ja-usertools"> <?php $tmpTools->genToolMenu($tmpTools->getParam(JA_TOOL_USER)); ?> </div> <?php } ?> <!-- END: USER TOOLS --> </div> <!-- END: MAIN NAVIGATION --> <div id="ja-containerwrap<?php echo $divid; ?>"> <div id="ja-container" class="clearfix"> <!-- BEGIN: CONTENT --> <div id="ja-content"> <div class="ja-innerpad clearfix"> <?php if(!$tmpTools->isFrontPage()) : ?> <div id="ja-breadcrumb"> <?php mosPathway(); ?> </div> <?php endif ; ?> <div id="ja-current-content"> <?php global $mainframe, $option; $m_menu = $mainframe->get( "menu" ); $m_params = new mosParameters( $m_menu->params ); $m_intro = $m_params->def( "intro", 4 ); $m_leading = $m_params->def( "leading", 1 ); if ( !$tmpTools->isFrontPage() || $m_intro || $m_leading) { ?> <?php mosMainBody(); ?> <?php } ?> <?php if ( $tmpTools->isFrontPage() && mosCountModules("ja-news") ) { ?> <div id="ja-newswrap"> <?php mosLoadModules('ja-news'); ?> </div> <?php } ?> </div> <?php if(mosCountModules('banner')) : ?> <div id="ja-banner"> <?php mosLoadModules("banner", -1); ?> </div> <?php endif; ?> </div> </div> <!-- END: CONTENT --> <?php if ($ja_left || $ja_right) { ?> <!-- BEGIN: COLUMNS --> <div id="ja-colwrap"> <?php if ($ja_left) { ?> <div id="ja-col1"> <div id="ja-col1-top"> </div> <div id="ja-col1-center"><div id="ja-col1-bot"> <?php mosLoadModules('left', -2); ?> </div></div></div> <?php } ?> <?php if ($ja_right) { ?> <div id="ja-col2"> <?php mosLoadModules('right', -2); ?> </div> <?php } ?> </div><br /> <!-- END: COLUMNS --> <?php } ?> </div></div> <?php $spotlight = array ('user1','user2','user5','user6','user7','user8'); $botsl = $tmpTools->calSpotlight ($spotlight,99.9); if( $botsl ) { ?> <!-- BEGIN: BOTTOM SPOTLIGHT --> <div id="ja-botslwrap"> <div id="ja-botsl" class="clearfix"> <?php if( mosCountModules('user1') ) { ?> <div class="ja-box<?php echo $botsl['user1']['class']; ?>" style="width: <?php echo $botsl['user1']['width']; ?>;"> <?php mosLoadModules('user1', -2); ?> </div> <?php } ?> <?php if( mosCountModules('user2') ) { ?> <div class="ja-box<?php echo $botsl['user2']['class']; ?>" style="width: <?php echo $botsl['user2']['width']; ?>;"> <?php mosLoadModules('user2', -2); ?> </div> <?php } ?> <?php if( mosCountModules('user5') ) {?> <div class="ja-box<?php echo $botsl['user5']['class']; ?>" style="width: <?php echo $botsl['user5']['width']; ?>;"> <?php mosLoadModules('user5', -2); ?> </div> <?php } ?> <?php if( mosCountModules('user6') ) {?> <div class="ja-box<?php echo $botsl['user6']['class']; ?>" style="width: <?php echo $botsl['user6']['width']; ?>;"> <?php mosLoadModules('user6', -2); ?> </div> <?php } ?> <?php if( mosCountModules('user7') ) {?> <div class="ja-box<?php echo $botsl['user7']['class']; ?>" style="width: <?php echo $botsl['user7']['width']; ?>;"> <?php mosLoadModules('user7', -2); ?> </div> <?php } ?> <?php if( mosCountModules('user8') ) {?> <div class="ja-box<?php echo $botsl['user8']['class']; ?>" style="width: <?php echo $botsl['user8']['width']; ?>;"> <?php mosLoadModules('user8', -2); ?> </div> <?php } ?> </div> </div> <!-- END: BOTTOM SPOTLIGHT --> <?php } ?> <!-- BEGIN: FOOTER --> <div id="ja-footerwrap"> <div id="ja-footer" class="clearfix"> <?php mosLoadModules("user3", -1); ?> <?php include_once (dirname(__FILE__).DS.'/footer.php' ); ?> </div> </div> <!-- END: FOOTER --> </div> <?php mosLoadModules("debug", -1); ?> </body> </html> Title: Re: French accents Post by: Mick on November 25, 2008, 11:20:36 PM Try changing this:
Code: ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> To this: Code: ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <?xml version="1.0" encoding="ISO-8859-1"?> <html xmlns="http://www.w3.org/1999/xhtml"> |