Download & Extend

Strange translation of a special character in the title

Project:Automatic Nodetitles
Version:7.x-1.x-dev
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed (won't fix)

Issue Summary

Hi,

I have a problem when I use this character in a taxonomy term : '

This character, when I put the taxonomy term token in the node title is translated by '

For example, the taxonomy term L'auberge is translated by L'auberge in my node title.

I don't have problem with others stpecial characters, and I test all available token (formated, raw...).

Can you help me ?

Comments

#1

Please, no idea ?

#2

Status:active» postponed (maintainer needs more info)

For me both characters look equal?

#3

I have problems mit the "&" chars in taxonomy terms + autonodetitle. It will display a ""&"

Can you look into it?

#4

Title:Stange translation of a spacial character in the title !» Strange translation of a spacial character in the title
Status:postponed (maintainer needs more info)» active

I guess the OP meant the character is replaced by an HTML entity. As he wrote the code without to escape the entity, it was shown from the input format as normal character.

Isn't this caused by the tokens that are passed to check_plain()?

#5

Oh sorry, "&" appears as &

How can i check this, kiam?

#6

Category:bug report» support request
Status:active» fixed

As noted in the description text, you should use raw tokens. If the token is raw, the characters are displayed correctly (= check_plained() once).

#7

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

#8

Status:closed (fixed)» active

reopening it.
What if there are no -raw values available, like for example tokens coming from locations? Is this tean a token issue or a locations issue?

#9

Status:active» closed (fixed)

Is this tean a token issue or a locations issue?

It is an issue of the module that provide the extra tokens without to provide a raw version.

#10

Title:Strange translation of a spacial character in the title» Strange translation of a special character in the title
Version:6.x-1.2» master
Status:closed (fixed)» active

I have the same problem as #3, with a simple PlainText field in Drupal 7. Only "&" and "'" give a problem, all other accents like "ø" are fine. Since it concerns a core field type, should I request a raw-token over there?

#11

Version:master» 7.x-1.x-dev

wrong version.

#12

Status:active» closed (won't fix)

For future reference, I have solved it like this:
My field 'field_name' = 'foo&bar'.
Using token [node:field-name], the result is 'foo&ampbar'. (a straight text field does not have alternative tokens.)
The correct value appears when setting
- 'Evaluate PHP in pattern.' = Yes
- 'Pattern for the title' =

<?php
return $node->field_name[$node->language][0]['value'];
?>

#13

#12 not working for me. The ' and & still show as &#039; and &amp.
I'm using a clean install of Drupal 7.8
Can anyone verify this? Thanks

By the way, 'raw' tokens don't exist any more in the latest Token module for Drupal 7, so that's not a solution.
Hope this issue gets resolved soon, makes this module useless for me.

#14

Drupal 7.8
Automatic Nodetitles 7.x-1.0
Token 7.x-1.0-beta6

I was having this same problem on a plain textfield value with names like O'Brien
They were auto-titling as O&#039;Brien

I tried #12 and it worked for me.

nobody click here