The forum address has changed, you have been automatically redirected. Please update any bookmarks to use the new URL.

Subscribe

Local files in Cyrillic

  1. 2008-09-10 13:55:20 UTC
    ViewSourceWith works great in general, but it cannot open the html source from local files in external text editor if its path has Cyrillic (non-ASCII) characters.

    Editor shows message that path is not correct and shows Cyrillic file name like that:
    B> B0;>9 ;C75@.htm

    Davide please look at this bug: Bug 409796 – No pictures shown in saved file (file name and folder name, containing that file, is in cyrillic)
    https://bugzilla.mozilla.org/show_bug.cgi?id=409796
    Fixing of this bug let use Cyrillic in file names but additional effect is that ViewSourceWith not opens source in that cases.
    WinXP SP3 Russian, ViewSourceWith 0.2 and 0.3, SeaMonkey 1.1.11, Firefox 3.01
  2. 2008-09-10 16:09:36 UTC
    I admit VSW is no more locale compliant but I want to resolve these problems.

    The main difficult is reproduce the bug
  3. 2008-09-11 08:07:52 UTC
    A am not programmer, but I can reproduce any steps as a user. :) If it will help.

    (or install winXP RU on your comp temporarily)
  4. 2008-09-11 10:26:27 UTC
    May you give me some web site link to use to reproduce the problem?

    thanks for your support,

    dafi
  5. 2008-09-11 15:18:30 UTC
    No problems with web sites online. As I think all links to css, js and pages are in Latin letters so no need for conversions.
    Well some pages have Cyrillic letters in address (open some article in wikipedia.org in your language and look at left menu with link to Russian version - some of them have Cyrillic in address) and those pages opens with ViewSourceWith good.

    The problem exists only if you save any page (File -> Save As) and it's name (the name of html-file) would be in Cyrillic.
    The language of content of that site and the page not important - only language (charset) of file name of saved page is important.
    And may be charset of the system (Windows).
  6. 2008-09-11 15:25:26 UTC
    So the problem affects only local files?
  7. 2008-09-11 16:16:42 UTC
    Yes. I was in my first message. :)
    And only html source.
  8. 2008-09-11 16:28:24 UTC
    May you send me a zipped archive containing files to test?

    You can upload on http://rapidshare.com/ or where you prefer

    thank you very much
  9. 2008-09-12 07:55:51 UTC
    "zipped archive containing files to test" in my site:
    http://fotoleto.ru/seamonkey/SaveAs-ViewSourceWith.zip
    :)

    One page, saved in SM, FF and Netscape 9.0 (like FF 2.0)

    EmEditor shows reaction, other editors (Notepad++) only open empty window.
  10. 2008-09-12 13:44:35 UTC
    Thank you very mush, as soon as possibile I will investigate the problem
  11. 2008-09-13 18:56:23 UTC
    I have bad news :(

    Under Linux I've fixed the bug but under Windows seems impossible because the calling routine used by Mozilla to run external programs (eg run the editor) doesn't allow to pass parameters containing UTF-8 characters

    I've also asked on mozillazine and irc without success
    http://forums.mozillazine.org/viewtopic.php?f=19&t=850765&sid=b302435ced5289408612c34474dd9230
  12. 2008-09-15 12:34:07 UTC
    Well, I can only pay your attention on bugzilla - it has several bugs with discussions about converting to and from utf-8.

    And create consortium with authors of JSview and Firebug - the same behavior.

    But ViewSourceWith opens css and js - JSview does't.
  13. 2008-09-20 11:46:01 UTC
    Hi,

    I've fixed the problem but under Windows it works only if I change the "Language for non-Unicode programs" to Russian (*), my default value is Italian.
    Under Linux seems to work simply using the UTF-8 charset.
    I'm unable to test under Mac OSX so actually OSX uses the same technique used by Linux.

    I don't like the solution because I can't directly open russian files inside my italian-configured Windows but I think this is a little step ahead.

    May you help me and test the new version?
    The download is available at

    http://dafizilla.sourceforge.net/viewsourcewith/beta/viewsourcewith-0.4a.xpi

    Thanks for your feedback and to involve Infocatcher :)

    (*)
    Control Panel -> Date, Time, Languages, and Regional Options -> Add other Languages
    Select the Advanced tab and choose Russian as language.

  14. 2008-09-25 11:59:48 UTC

    http://fotoleto.ru/seamonkey/SaveAs-FF3.0.1charset=utf-8.zip

    1 minimum page with utf-8
    folder 1 - original page
    folder 2 - the same page saved from FF3.0.1 with russian name

    beta/viewsourcewith-0.4a.xpi doesn't work in case utf-8 page

    It works with win-1251

    IETab opens source of utf-8 pages
  15. 2008-09-25 14:02:58 UTC
    On my Windows IETab works exactly in the same manner of VSW 0.4a so it is very difficult to try a workaround... but I'm hard working

  16. 2008-09-26 11:13:44 UTC
    New info by another user in forum.mozilla-russia.org
    The same problem with the function in FF 3.0.1 itself :(

    pref("view_source.editor.external", false);
    set to true and set path to editor in
    pref("view_source.editor.path", "");
    Then
    View -> Page Source

    Error with pages with win-1251 and utf-8
  17. 2008-10-02 15:52:22 UTC
    Please may you test the new version 0.4b?

    http://dafizilla.sourceforge.net/viewsourcewith/beta/viewsourcewith-0.4b.xpi

    It contains an XPCOM C++ component that works on my Italian Windows XP and with an English Windows XP without need to modify Windows settings.

    I've successfully open all files you have sent to me

    Editors used
    - komodo edit
    - windows notepad
< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.