Ticket #4473 (closed defect: fixed)

Opened 1 year ago

Last modified 1 year ago

Slugs for wp_terms and int'l characters

Reported by: shacker Assigned to: rob1n
Priority: normal Milestone: 2.3
Component: Administration Version: 2.3
Severity: normal Keywords: has-patch
Cc:

Description

When creating tags/terms with Chinese characters, the name field stores the chars properly, but the slug field mangles them.

wp_terms.name = 文心

wp_terms.slug = %e6%96%87%e5%bf%83

Most likely true for other non-Roman character sets as well.

Attachments

4473.diff (0.6 kB) - added by rob1n on 06/15/07 17:38:33.

Change History

06/15/07 16:55:03 changed by rob1n

Not really mangling -- the slug is the one that goes in the URL, so it has to be encoded.

06/15/07 17:16:01 changed by ryan

That's the correct slug.

文 ( U+6587 CJK UNIFIED IDEOGRAPH-6587 literature, culture, writing ) is 0xE6 0x96 0x87 in UTF-8

心 ( U+5FC3 CJK UNIFIED IDEOGRAPH-5FC3 heart; mind, intelligence; soul ) is 0xE5 0xBF 0x83

06/15/07 17:18:00 changed by ryan

I think the problem is that the_tags() is using the slug instead of name.

06/15/07 17:37:43 changed by rob1n

Oh.

06/15/07 17:38:33 changed by rob1n

  • attachment 4473.diff added.

06/15/07 17:38:53 changed by rob1n

  • keywords changed from 2nd-opinion to has-patch.

06/15/07 17:40:03 changed by rob1n

  • owner changed from anonymous to rob1n.
  • status changed from new to assigned.

06/15/07 18:26:43 changed by rob1n

  • status changed from assigned to closed.
  • resolution set to fixed.

(In [5715]) Show the name, not the slug. fixes #4473