Fork me on GitHub

Strange text appears after editing files      Bottom

  • Hi
    I edited some PHP en HTM file of my theme (BlankTheme) and the module Formicula with notepad and later on with Microsoft expression web
    Now every file renderd in Zikula/php shows  at the top ( strange markings)
    When i open the file in NotePad I don't see the markings
    I looked on the net, nobody has a answer. I edited the same files before with no problems.

    See http://micware.nl/zi…hp?module=formicula

    Only thing I find on the net is, it could have something to do with UTF-8.

    Anybody know how to fix this?
  • When I select UTF-8 encoding on Firefox, the symbols disappear icon_smile

    I'd assume the file is saved in UTF-8 format, but your meta states: charset=ISO-8859-1

    Just re-edit the file, and save as ISO or ASCII. Download and use Notepad2 or Notepad+ , you can choose which encoding to save the files under.

    Notepad itself doesn't show UTF characters that aren't in the ASCII/ISO character sets, sometimes I use it to clean non-printing characters quickly just for this reason - ie, copy, paste into notepad, copy back into whatever, all characters are now printable.
  • Important! That's a special flag for UTF-8. Not every editor shows them - but they make a lot of problems in Zikula. I found them in the Formicula language fils. So please check all the lang files.

    Open in Windows notepad and delete the first characters (why am i recommending windows tools ... ;) ) and save them.


    --
    | scribite! | TNGz | piwik | zweet |
  • Hi,
    Thx for all the response, I tried some of the suggestions , but no luck jet.

    http://micware.nl/zikula/index.php?module=Formicula

    I?m unable to remove the UTF-8 code ,
    I used notepad and notepad2, used safe as? to safe the file under a different name and replaced the original file on my webshare (NTFS W2K3), still de code, there is no editor that makes this coded visible,
    If I select UTF-8 in IE7 or FF3, the code is gone!

    Maybe I edit the wrong file, I uses Firebug, but it?s not clear what file(s) is the problem

    Has anybody some more tips or advice
    Thx in advance
  • Clear out all your compiled and cached templates.

    --
    David Pahl
    Zikula Support Team
  • Hmmm... I had the same problem before at work. As I recall we were using MS Web Expressions. This isn't always the case, FrontPage and Notepad have had the same affect.

    It's been a while but I believe what I had to do at the time was delete the first character at the beginning of the file and then type it back in. I remember someone recommending that I load the file into a UNIX/Linux system and then save it from there... kind of hard to do in a Windows only environment (unless you have a VM handy).

    Nice site though :)

  • Using notepad2, open the file.

    Go to File->Encoding

    See what its set to now,

    Then select ANSI if not selected.

    You can also select View - > Show Whitespace and other selections to better see the underlying non-visible characters if there are any.
  • YES,

    Used Notepad2, Scanned throe all the files manual.
    Found the problem files and was able the fix the problem

    Thx again

This list is based on users active over the last 60 minutes.