Results 1 to 9 of 9
  1. #1
    Casual Pligger trh792's Avatar
    Joined
    Feb 2007
    Posts
    35

    story.php?title= contain bad code "��"

    in my pligg site:
    http://www.digbook.net/live_published.php

    some title , for examples, contain the bad charactor "��"
    http://www.digbook.net/story.php?title=王立群解��-《史记》人物

    when click the url ,the page show blank. may some charactor do not delete by the pligg system

  2. #2
    New Pligger nomadusa's Avatar
    Joined
    May 2007
    Posts
    1
    you had better use url instead of title, something like:
    story.php?url=....

    I don't think some utf-8 functions at Pligg can handle Chinese very well.

  3. #3
    New Pligger Ukie's Avatar
    Joined
    May 2007
    Posts
    2
    I have similar issue with only one letter in Ukrainian (cyrillic) titres.
    In place of "л" letter it put "Є" in url. Other letters are just fine and if you skip this л letter url is just fine. Please help.

    you had better use url instead of title, something like:
    story.php?url=....
    And how I can do this?

  4. #4
    New Pligger Ukie's Avatar
    Joined
    May 2007
    Posts
    2
    Ok. about second part I've found answer by myself , got changed to url= in Configuration settings.

    Still have no solution for л letter. Seems like some issue with
    return utf8_strtolower($string);
    string

    Similar issue with categories. Even you switch to url= method categories is still in domain.com/титри/ mode and the issue with cyrillic characters there it goes.

    ...I just wondering how Wiki handles that smoothely .Look at the beauty :-) as for instance http://uk.wikipedia.org/wiki/веб-сервіс

  5. #5
    Casual Pligger pligger2's Avatar
    Joined
    Dec 2006
    Posts
    45
    I have similar problem, in previeus version everything was OK, now something is wrong with characters. changing to url= is only a Temporarily solution.

  6. #6
    Casual Pligger pligger2's Avatar
    Joined
    Dec 2006
    Posts
    45
    OK, I solve this problem by replacing code from "function makeUrlFriendly($input)" in libs/utils.php to code from v. 9.1.
    I don't know, is this correct, but it's working.

  7. #7
    Casual Pligger Elephant789's Avatar
    Joined
    Aug 2007
    Posts
    65
    Quote Originally Posted by pligger2 View Post
    OK, I solve this problem by replacing code from "function makeUrlFriendly($input)" in libs/utils.php to code from v. 9.1.
    I don't know, is this correct, but it's working.
    pligger2,
    Can you give me that code from v.9.1. I'm using 9.7, what were you using originally? I'm having the same problem but haven't found a fix yet.

  8. #8
    New Pligger supudo's Avatar
    Joined
    Jul 2007
    Posts
    5
    Hi all,

    Found out that in libs/utils.php in the latest version - 9.8, in the function makeUrlFriendly() and in this line :
    $output = str_replace("»", "-", $output);
    the cyrillic letter "л" gets replaced up by the "Э", which totally doesn't makes sense.
    As proposed in this thread, the version of this function from 9.1 works fine. Also commenting this line also does the trick.

    Regards

  9. #9
    Casual Pligger Andreiii's Avatar
    Joined
    Aug 2007
    Posts
    84
    Quote Originally Posted by pligger2 View Post
    OK, I solve this problem by replacing code from "function makeUrlFriendly($input)" in libs/utils.php to code from v. 9.1.
    I don't know, is this correct, but it's working.
    What the code in version 9.1 ? Place it here, please.

    I have the problem with incorrect characters in Related Stories .
    I have URL Method 2 and FriendlyURLs is false, but links look as
    /story/title/ÓâåÝè÷èÝîñü_÷èñÝî_À?Ï_ñ

    Look the code in Story_center.tpl::

    Code:
    	{section name=nr loop=$related_story}
    		<li><a href = "{$related_title_url}{$related_story[nr].link_title_url}">{$related_story[nr].link_title}</a><br/></li>
    	{/section}
    Or I need to transform links with id (like story/99)... But how?

Similar Threads

  1. Replies: 2
    Last Post: 02-06-2009, 06:59 PM
  2. What code runs after "Submit Story"?
    By roschler in forum Questions & Comments
    Replies: 3
    Last Post: 06-25-2007, 01:12 PM
  3. Replies: 1
    Last Post: 05-05-2007, 01:14 PM
  4. Mysterious default "1" in Submit Story Title
    By Critter183 in forum Questions & Comments
    Replies: 3
    Last Post: 04-02-2007, 01:45 PM
  5. Replies: 4
    Last Post: 02-18-2007, 09:09 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Pligg Modules and Pligg Templates from Pligg Pro Donate to Pligg CMS Dreamhost Web Hosting Host Gator Web Hosting