Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 08:30:58 AM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155535 Posts in 21713 Topics by 7737 Members
Latest Member: chris85
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Path to URL with extrage characters breaks navigation:  (Read 357 times)
Pepe Fernandez

Offline Offline

Posts: 3


« on: April 21, 2010, 04:39:00 PM »

Hi there;

As a new user of WebsiteBaker I'm becoming an enthusiat user. My programming skills are purely inexistent, but anyway i feel capable of writing some CSS, HTML and play around with the JQuery Framework.

I've finished a web site for one of my clients based on WB.

The problem I've recently found (after moving to a different server) is the following:

The site is in spanish, son the new pages creatid have got spanish characters, as (Ñ,ñ, á, etc.).
When we create a new page (on the new server) under a parent one, whose title is , E.G. "catálogo" and the child, the new created page is "Expediente técnico de construcción", which would be a section with lots of subscetions, the link becomes (as seen on the browser) something as :

http://clientes.pepefernandez.es/gtg/pages/catE1logo/servicios/expediente-tE9cnico-de-construcciF3n.php

instead of:

http://clientes.pepefernandez.es/gtg/pages/catalogo/servicios/expediente-técnico-de-construcción.php

If you copy and paste this link on yopur browser it will work ok,

Can anybody help me?

Thanks!!!
Logged
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7973



WWW
« Reply #1 on: April 21, 2010, 07:45:05 PM »

Hello,

wich charset did you use?

you should use utf8, then the file should be named like:

http://clientes.pepefernandez.es/gtg/pages/catalogo/servicios/expediente-tecnico-de-construccion.php

special chars in links are not possible. WB replaces all specialchars with correct latinchars if charset UTF8 is used.

But the correct charset must be set before the first page is created. If you change the charset after you have created your pages it will break WB (not only the pages links, also the content of your pages).

If you now have the wrong charset, you must manually adapt the pagesnames in the pages directory and the correspondendin database entries in the pages table.

Matthias
Logged
Pepe Fernandez

Offline Offline

Posts: 3


« Reply #2 on: April 21, 2010, 11:20:14 PM »

Hi Matthias;

Thank you for your response, but I must be doing something else really wrong.

I designed the web site on my mac and used XAMPP as a testing enviroment. Since the beginning I used the UTF-8 codification.

When creating the root structure of the web I created the fisrt pages of the main menu and one of them was called "catálogo" with special characters on it.

Aftewards I created the subpages, wich some of them had special characters in their title and also on their menu name, as for example "expediente técnico de construcción"

Everything went allright. The links worked perfect and I ha no moer problem that having to learn some of th WB triks in order to handle the web as my client wanted to.

But, and here comes the problem, we moved al the stuff to an online testing enviroment on my hosting provider (the http link is  http://clientes.pepefernandez.es.gtg).

I followed this step to migrate to the new location:

  • I created a brand new DB on my server, with UTF-8 general charset encoding;
  • Uploaded the whole WB site to the new location;
  • Modified the config.php file in order to fit the new location;
  • Changed the CHMOD to the specific folders as requested on the installation wizard;
  • I modified the config.php file to suit the new location needs;

And everything went all right until my client created a new page under the "Catálogo" tree.
What happened was what I explanained on my first post.

I tried to solve it my self and made some manual changes on the MyQL tables, changing in the "Pages" table the UTF_General_ci to UTF_unicode_ci (just fooling around…) and what happened was very interesting:

When testng the new codification parameters, nothing in t the spanish content of the pages or on the backend had changed, but, after creasting a new page under "catálogo" with it's name also containing special characters, the links worked well but on the browser the link that appears is as follows:

E1[/b]logo/servicios/diseF1o-y-desarrollo-de-FAtiles-especiales.php]http://clientes.pepefernandez.es/gtg/pages/catE1logo/servicios/diseF1o-y-desarrollo-de-FAtiles-especiales.php

It should be: …/pages/catalogo/servicios/diseno-y-desarrollo-de-utiles-especiales

The original name of the page is: "diseño y desarrollo de útiles especiales"

But there's more: after changng the UTF charset on my MySQL table, once i connected to the server via FTP I've discovered that, althought the page's schema is OK on tne CMS, there's a new folder into the "pages" folder, so, if I had a folder named "catalogo" with the subpages in it, now i've got a new one: "catE1logo", and inside it, the new or the modified pages with the strange name created in it…

¿?
Thank you!
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!