Menu

#31 Support for non ascii characters

None
open
nobody
None
5
2013-02-07
2012-04-22
No

The swedish characters Å, Ä and Ö (or lowercase å, ä and ö) cannot be used in PLCSlib.

we are developing a context called SwedishDefence, with DEXs and Templates that have Swedish names. I was about to create a template called “Åtgärdstyp” but have run into severe difficulties:

First, I thought this was only a restriction for file names, but decided to try to run ant mk-template and enter Swedish characters in the command language, which of course failed. Neither directories nor file names came out correctly, and the ant script did not finish.

Instead I created the template “Atgardstyp” (which is rubbish in Swedish, its like prohibiting the use of y because you have I, or prohibiting c and z because you have s), and then thought I could edit the XML files, so at least we can read the names properly in HTML. But when I tried to edit the name of the template in context_index.xml, it shows up nicely on the screen, but when clicking it does not find any files with that name.

However, so far (I have not yet started to create any content of the template), it seems possible to change the name within the file template.xml, so when I have reached the template, it shows up with Swedish characters.

POSSIBLE WORK AROUND?
If it is not possible to change the infrastructure of PLCSlib to allow for Swedish characters in file names, can we at least change the xsd/dtd so that it will be possible to supply the correctly spelled name in utf-8 or something as a second attribute when creating the template, and that attribute is used for presentation purposes? i.e. in context_index.xml:

<template id="Atgardstyp" name=”Åtgärdstyp”/>

Discussion

  • Rob Bodington

    Rob Bodington - 2013-02-07

    See: https://sourceforge.net/p/plcslib/plcslib-infrastructure/133/
    /cvsroot/plcslib/plcslib/xsl/common.xsl,v <-- common.xsl
    new revision: 1.39; previous revision: 1.38

    Can now display non ascii characters in the HTML

     
  • Rob Bodington

    Rob Bodington - 2013-02-07
    • milestone: -->
     

Log in to post a comment.