User login

Stopping pathauto from attempting to use special characters that end up encoding uglily

When a pattern includes certain characters (such as those with accents) should Pathauto attempt to transliterate them into the ASCII-96 alphabet? Transliteration is determined by the i18n-ascii.txt file in the Pathauto directory. This option is disabled on your site because you do not have an i18n-ascii.txt file in the Pathauto directory.

Resolution

cp i18n-ascii.example.txt i18n-ascii.txt

Just to give the option. we don't have to use it.

This has to be repeated every time we update the pathauto module.

In our set-up, in my checkout of Agaric's repository, the command is:

Ebony:~/workspace/repos/agaric/drupal-contrib/5/modules ben$  cp pathauto-5.x-2.0-beta3.tar/pathauto/i18n-ascii.example.txt pathauto-5.x-2.0-beta3.tar/pathauto/i18n-ascii.txt

Ebony:~/workspace/repos/agaric/drupal-contrib/5/modules ben$ svn add pathauto-5.x-2.0-beta3.tar/pathauto/i18n-ascii.txt

It would be really nice not to have to do this every time we update the module.

Searched words: 
pathauto making silly aliases with percent characters % and such

Comments

This fix did NOT

This fix did NOT work.

Quotation marks and other special characters still were converted to ugly ASCII codes.

A patch proposed (not by us) for pathauto 2 fixes it:

http://agaricdesign.com/note/thisll-test-32s-special-character-removal-ill-be-happy

Agaric is running this patch on our sites now. We'll see if it gets in.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • You can use Markdown syntax to format and style the text. Also see Markdown Extra for tables, footnotes, and more.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <blockquote> <small> <h2> <h3> <h4> <h5> <h6> <sub> <sup> <p> <br> <strike> <table> <tr> <td> <thead> <th> <tbody> <tt> <output>
  • Lines and paragraphs break automatically.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.