Forums / Developer / url_alias not supporting UTF8 .. or what ?!

url_alias not supporting UTF8 .. or what ?!

Author Message

Selmah Maxim

Wednesday 18 June 2003 5:16:27 am

Hi ..

my site have 4 language (English,Hungarian,Hebrew,Arabic) , the url_alias work fine with iso type fonts, but I get parent path for the link if I switch to hebrew, or arabic, or hungarian !

Is this my fault or url_alias not supporting not supporting it yet ?

Bård Farstad

Wednesday 18 June 2003 5:29:06 am

The url alias does not support other characters than 0-9 a-z and _. We need extend this to support unicode type url's.

BTW: do you have a link to the site. It would be interesting to see that kind of internationalized site. Also: are you using MySQL 4.1 or PostgreSQL?

--bård

Documentation: http://ez.no/doc

Selmah Maxim

Wednesday 18 June 2003 5:35:57 am

I see ..

Then just the english site will use url_alias, else node_id !

Not yet, still developing it in localhost.

thx.

Bård Farstad

Wednesday 18 June 2003 5:50:14 am

What we need to do is make a solution for this that works. We could of course just encode the characters like the norwegian characters æøå can be used in an URL by encoding it as %E6%F8%E5, but I think that this looks very dirty and is not very user friendly - which was the Idèa with the url_alias.

The second solution which we can implement is a translation table for every character set which will convert o->oe, æ->ae and å->aa. But this will only work for character based languages.

For chinese and japanese I do not have a good suggestion.

A fallback solution would be to use the node id if the name is empty. E.g. /home/news/120/420/.

Any input?

--bård

Documentation: http://ez.no/doc

Selmah Maxim

Wednesday 18 June 2003 6:13:00 am

I agree with you .. will be to long and ugly link :)

But .. I have some sites which use friendly url, and it`s can grap the UTF8 fonts normal, but the i don`t use utf-8 charset, am using windows-1256, and it`s work fine, and geting the artical from DB by the artical name which is in utf8 , but will be little bit difficult to write the link manually for hebrew and arabic language, beciz is starting from right to left :) !

btw .. the site will use Mysql.

Tamas Takacs

Tuesday 25 November 2003 12:08:07 pm

Hi,

We are about to set up a Hungarian language site, where I'd like to use a translation table like solution for converting accented vowels:

á -> a
ó,ö,ő -> o
ü,ű -> u
í -> i

Since the existing url_translator simply leaves these above mentioned letters out from the string, the practical result is something "very difficult to understand" urls.

I understand, that implementing of this charactertable conversion module is not top priority for eZ, so I am happy to do it (or at least try :), also I am not very familiar with the source yet, so I'd be glad for some assistance of locating the script responsible for URL translations.

Tamas

Mikhail Chekanov

Monday 29 December 2003 9:28:01 am

Does anybody know how to solve this problem?

Is there any suggestion how editors can assign url_alias manually for each object?
For exapmple:
Directory "Economy and business" has url_alias "business" only and an article with title "McDonald's, Wendy's shares beef up" has url_alias "sharesbeefup".

Lazy editors can simply leave this field blank to generate it automatically.

And, finally, I don't think that translation table ф,Ф->F should be good enough for non-latin languages (russian, chinese, bulgarian, etc) because such translation kills the sense constituent of "url_alias"

BTW: Nice urls are important not only for users, but can bring some additional pageranking for search engines.

--
mike
#6595551

liu spider

Tuesday 30 December 2003 2:17:34 pm

I agree with eoNormalMutation, as for non-latin based Language, manually alias_url is the best choice (in fact by fat the only solution I can come up with)

I did patch eZ 3.1 to support this, although with some limitations( only main location's url can be assigned).

Unfortunately, I lost all the source code :(

Hope this would be a new feature in eZ 3.4 series.

http://liucougar.scim-im.org
SCIM Input Method Platform
http://scim.sf.net
SJSD Online Editor
http://sf.net/projects/sjsd

eZ debug

Timing: Jan 18 2025 10:34:03
Script start
Timing: Jan 18 2025 10:34:03
Module start 'content'
Timing: Jan 18 2025 10:34:04
Module end 'content'
Timing: Jan 18 2025 10:34:04
Script end

Main resources:

Total runtime0.8316 sec
Peak memory usage4,096.0000 KB
Database Queries215

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0086 588.8672180.8281
Module start 'content' 0.00860.6848 769.6953704.6953
Module end 'content' 0.69350.1380 1,474.3906340.4453
Script end 0.8315  1,814.8359 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00430.5157210.0002
Check MTime0.00150.1861210.0001
Mysql Total
Database connection0.00100.120410.0010
Mysqli_queries0.742889.32622150.0035
Looping result0.00210.25232130.0000
Template Total0.800696.320.4003
Template load0.00220.260620.0011
Template processing0.798496.010220.3992
Template load and register function0.00030.030310.0003
states
state_id_array0.00080.092110.0008
state_identifier_array0.00070.080320.0003
Override
Cache load0.00190.2251520.0000
Sytem overhead
Fetch class attribute can translate value0.00150.175160.0002
Fetch class attribute name0.00150.1802100.0001
XML
Image XML parsing0.00180.217160.0003
class_abstraction
Instantiating content class attribute0.00000.0022110.0000
General
dbfile0.00270.3250340.0001
String conversion0.00000.001130.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
8content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
10content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 25
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs