Bug #2701

Visualization problems with accented letters

Added by Davide Principi over 5 years ago. Updated over 5 years ago.

Status:CLOSEDStart date:
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:nethserver-httpd-admin
Target version:v6.5
Security class: Resolution:
Affected version:v6.5-final NEEDINFO:No

Description

In server-manager, to reproduce:
  • Insert an accented letter into a text field
  • Save the form
  • Reload the page
  • If necessary, open the form again.

The accented letter is not displayed correctly.

Note: the value is correctly set in DB

bug2701.patch Magnifier - Proposed patch (795 Bytes) Davide Principi, 03/26/2014 05:32 PM


Related issues

Related to NethServer 6 - Bug #2068: Single and double quotes characters escaped CLOSED 08/22/2013 08/22/2013

Associated revisions

Revision 5d60f9a3
Added by Davide Principi over 5 years ago

Fix Perl string encoding for data returned by esmith::db module. Refs #2701

History

#1 Updated by Davide Principi over 5 years ago

The attached patch seems to solve the problem.

The underlying esmith::config library returns strings as default Perl "latin1" encoding. It avoids a wrong re-encoding by the JSON module, by setting ->latin1 explicitly.

#2 Updated by Davide Principi over 5 years ago

  • Target version changed from ~FUTURE to v6.5

#3 Updated by Davide Principi over 5 years ago

  • Status changed from TRIAGED to ON_DEV
  • Assignee set to Davide Principi
  • % Done changed from 20 to 30

#4 Updated by Davide Principi over 5 years ago

  • Status changed from ON_DEV to MODIFIED
  • Assignee deleted (Davide Principi)
  • % Done changed from 30 to 60

Applied proposed patch

Test case

see bug description

#5 Updated by Davide Principi over 5 years ago

  • Status changed from MODIFIED to ON_QA
  • % Done changed from 60 to 70

In nethserver-testing:
nethserver-httpd-admin-1.2.2-1.0git5d60f9a3.ns6.noarch.rpm

#6 Updated by Giacomo Sanchietti over 5 years ago

  • Assignee set to Giacomo Sanchietti

#7 Updated by Giacomo Sanchietti over 5 years ago

  • Status changed from ON_QA to VERIFIED
  • Assignee deleted (Giacomo Sanchietti)
  • % Done changed from 70 to 90

Before modification:

[root@localhost ~]# config show OrganizationContact
OrganizationContact=configuration
    City=Hometown
    Company=Example Org
    CountryCode=
    Department=Main
    PhoneNumber=575-1685
    State=
    Street=123 Main Street

After modification:

[root@localhost ~]# config show OrganizationContact
OrganizationContact=configuration
    City=Testàa
    Company=Example Org
    CountryCode=
    Department=Main
    PhoneNumber=575-1685
    State=
    Street=123 Main Street

Accented letters are correctly displayed inside the web interface.

#8 Updated by Giacomo Sanchietti over 5 years ago

  • Status changed from VERIFIED to CLOSED
  • % Done changed from 90 to 100
Released:
  • nethserver-httpd-admin-1.2.3-1.ns6.noarch.rpm

Also available in: Atom PDF