Backslash and other special characters
  • OK. I'll try it in english. Please excuse all of the deficits.

    If i'm writing a path in the flatpress-editor and saving the article, the backslash is lost.

    So i tried to escape the backslash with another one. After saving, it is ok for exact one time. But if i save twice, no backslash left.

    Is there any possibility to use a backslash in an article?
  • Hm, which version of Flatpress do you use? Please try this one:
    Flatpress Blog

    Small hint: For the version mentioned in the blog it is better to use PHP 5.x. Please take a look before you upgrade your Flatpress version.
  • First I used 0.812.1. Yesterday I upgraded to 0.907, svn. Exactly as you've suggested. Unfortunatly the problem occurs in both cases.

    PHP is V 5.2.10.

    Thanks for your help.
    -----------
    Update

    I've tested it local with Xampp. PHP 5.26. Flatpress 0.812.1 and 0.907. Here it's working fine.
    Perhaps a server problem? What do you think?
  • Not sure what going wrong. I'm tried on my test area (Apache/PHP 5.x) a simple test with backslash in the text as path and with a leading white space. All do work with SVN 270, editing, saving, preview and editing after saving.

    Is there a charset other like UTF-8. Can you create a .htaccess, to force http requests delivered as UTF-8?
  • Can you create a .htaccess, to force http requests delivered as UTF-8?

    Mmm, ... i don't know the comands ... :-(

    I've uploaded a Testinstallation of the newest FP-Release to the Webspace. Same behaviour.
  • Create a file on your local harddisk called "htaccess.txt", then open it with a UTF-8 Editor (Windows = PSPad / Linux = Gedit or Kate) and insert following line:

    # using utf-8 encoding
    AddDefaultCharSet utf-8


    Then transfer this file to your web root and rename it on your webspace to ".htaccess". After that login in your Flatpress, go to Admin panel, there to the Options and at bottom take a look on the coding. Switch to UTF-8 is there is an other coding.
  • I did as you describe it, but the problem still exists.

    I really think that the server is the cause of the problem, cause the local xampp-install works fine.

    I deactivated the plugins for testing, but also no solution.
  • I'm now a bit unknowing, possible that it is a bug. Please do following:

    Login to your Flatpress, go to the Admin panel, there to Maintaince and then click on PHPinfo. Is the server Apache or Windows IIS? On Windows IIS please read this forum entry:
    Help: Flatpress and IIS 6
  • It's an Apache.

    Thank you for your help. I think, i'll take it as it is. Maybe an update in the future may solves the problem.

    But there is another thing. Maybe you will have a tip again.

    If i type i.e. [font=monospace]font[/font] or [font=serif]font[/font] the output is exactly as it is here. The font doesn't change.
  • In the current bbcode plugin there is no [font] support as described in the Wiki. It seems, that Nowhereman have it removed.

    If you want to change the font, use the [html] tags and "span" within the text.
    [html]<span style="font-family: courier">Test courier</span>[/html]
  • Good Message. It is reassuring that it was not my error.
  • Once again, backslash... Please try following, if you can use .htaccess on your webspace:
    AddDefaultCharSet utf-8
    AddCharSet utf-8 .php .css .txt

    Let me know, what happen with your backslash entry after editing/saving one more time.
  • Id did, but sorry ... everything remained as it was.

    Meanwhile I installed newest FP on another host with apache and PHP 5. After installing i just wrote one single entry which only contains the content

    C:\folder

    The same problem. Curious!
  • Not really nice :(

    Please go again to the admin panel and then to Maintaince. Take a look to PHPinfo and search in the result for:

    "default_charset"
    "HTTP_ACCEPT_CHARSET"
    "_SERVER["HTTP_ACCEPT_CHARSET"]"
    "_ENV["HTTP_ACCEPT_CHARSET"]"

    If the first in my list is "none", but the three others have "utf-8" included, so I don't know, why it works in my test area.

    Here a nice gag in my test area... (it seems to be a bug)
    I add a backslash in my entry title and it is displayed correct in the blog, but not in the "last 10 entries" sidebar plugin, hehe... There is a double backslash. But why?

    Oh, I forget to mention. Please clear the cache in your blog by deleting manually the files in the "fp-content/cache" directory. Then try again to write a entry with a backslash in the text.
  • default_charset no value no value
    TTP_ACCEPT_CHARSET UTF-8,*
    _SERVER["HTTP_ACCEPT_CHARSET"] UTF-8,*
    _ENV["HTTP_ACCEPT_CHARSET"] This entry does not exist.

    Please clear the cache in your blog by deleting manually the files in the "fp-content/cache" directory


    I did so. But no news! I wrote the backslash, save the entry ... bye bye backslash.
  • Puh..., I give up :(

    Hope that Nowhereman can find a solution for this circumstance.
  • Really! We spent much time for such a small character.

    Thank you once again.

    BTW many thanks for your template. Look here
  • please try if the SVN tarball has the same problem
  • Hello NoWhereMan.

    i did that, as i wrote in an entry above.

    First I used 0.812.1. Then I upgraded to 0.907, svn. Unfortunatly the problem occurs in both cases.

    Also with a fresh and empty installation. I tested two hosts with PHP 5.
    Under a local installation with XAMPP (also PHP 5) everything works fine.

    Greetings
  • have you tried some other script? is maybe your host filtering out some characters? e.g. can you post a entry containing the text "exec system fopen fwrite" ? (mod_security might be enabled)
  • have you tried some other script

    There's also running a little cms with uses textfiles, not a database. I have no problems with that.

    can you post a entry containing the text "exec system fopen fwrite" ?

    Maybe i'm a little stupid or my english is not enough. Do you mean writing "exec system fopen fwrite" in an flatpress-entry? If so, i did and it was no problem. (Although I do not really know exactly what I wrote. :-) )

    Another thing:
    If I save an entry as a draft i get the hint "Notice: Undefined index: draft in /is/htdocs/wp1096828_VPRO4B4OGX/www/netzkescher/admin/panels/entry/admin.entry.write.php on line 64". Only in the latest Flatpress-Version.

This discussion has been closed.
All Discussions

In this Discussion