[Server] Problem with special characters in name of contents

Bug #351512 reported by Damien Laureaux
22
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Xibo
Fix Released
Medium
Dan Garner
1.0
Won't Fix
Low
Unassigned
1.1
Won't Fix
High
Dan Garner
1.2
Won't Fix
Undecided
Unassigned
1.3
Fix Released
Medium
Dan Garner

Bug Description

When you enter a name for a content with special character, it save it with another specials characters (HMTL)

Example : for "Météo", it save it with "Météo"

Revision history for this message
Damien Laureaux (timoa) wrote :
Revision history for this message
Dan Garner (dangarner) wrote :

At first I thought this was going to be an issue - until I discovered I was being a little harsh with converting htmlentities...

There should be a fix on its way (pending test)

Revision history for this message
Dan Garner (dangarner) wrote :

That was said with haste... after further testing this will require much more investigation... there seems to be some conversion happening somewhere that is unclear to me.

I will commit the changes I have made as they do improve the situation further - you now get Météo in the layout grid but Météo when you come to design the layout...

I will investigate and open as a bug for 1.1

Revision history for this message
Damien Laureaux (timoa) wrote :

I will investigate when 1.0 get out but i think is the problem about iso8859-1 and UTF8 (Météo)...

htmlentities() coverrt the UTF8 (Météo) in html (Météo) and I think if you store value in UTF8 on DB, it's important to show value with utf8_decode() or something else...

I will study this bug for 1.1

Revision history for this message
Alex Harrington (alexharrington) wrote :

Hi Damien

I'm pretty sure Dan already knows exactly what's wrong - he spent some time working on it the other night. The problem we now have is figuring out how to re-introduce special characters without opening big security holes.

By all means take a look, but I think Dan has this covered already.

A

Revision history for this message
Stefan (st-haack) wrote :

Probably related: If I use special chars like Ä,Ö,Ü etc. items where not displayed at all. e.g. in Layout list, if i name ONE layout that way the WHOLE list is no longer displayed. Trying to schedule something fails as well.

Revision history for this message
Alex Harrington (alexharrington) wrote :

Thanks Stefan

Dan has made a minor patch which may or may not solve part of the problem for you in 1.0.0.

The release notes for 1.0.0 will explicitly say that special characters are not supported anywhere in Xibo for the whole 1.0 series. The new development 1.1 series will work towards this with a view to having support in a stable version for 1.2.0

Cheers

Alex

Changed in xibo:
importance: Undecided → Medium
status: New → Triaged
importance: Low → Medium
Revision history for this message
Alex Harrington (alexharrington) wrote :

Fixed in 1.3.0 branch currently for new installs but upgrade script still needs to be written to convert existing content over.

Revision history for this message
LoJo (ljoets) wrote :

I noticed that if a name layout has accentued characters, it's impossible to duplicate it with the copy button. The window is empty. I solved this bug by retyping the layout name without any accents like there : https://answers.launchpad.net/xibo/+question/102922

Revision history for this message
Alex Harrington (alexharrington) wrote : Re: [Bug 351512] Re: [Server] Problem with special characters in name ofcontents

Yes. Please read the release notes. Unicode characters are not supported in any currently available Xibo version. They will be starting with Xibo 1.3.0 server.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.