• 登入
sketchucation logo sketchucation
  • 登入
⚠️ Libfredo 15.4b | Minor release with bugfixes and improvements Update

[Code] file_found?(path) and to_ascii+to_unicode.rb

已排程 已置頂 已鎖定 已移動 Developers' Forum
42 貼文 5 Posters 5.9k 瀏覽 5 Watching
正在載入更多貼文
  • 從舊到新
  • 從新到舊
  • 最多點贊
回覆
  • 在新貼文中回覆
登入後回覆
此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
  • T 離線
    thomthom
    最後由 編輯 2011年8月22日 下午12:06

    Right, what you want to do is make your C extension call the Unicode version of the file API's - as converting from Unicode to ASCII in order to try and make Ruby's file functions work will in most cases not work.

    Note that the ASCII limitation for SketchUp's Ruby file functions exist only under Windows. Under OSX they should work AFAIK.

    Thomas Thomassen — SketchUp Monkey & Coding addict
    List of my plugins and link to the CookieWare fund

    1 條回覆 最後回覆 回覆 引用 0
    • D 離線
      Dan Rathbun
      最後由 編輯 2011年8月22日 下午4:04

      Do not ignore Dan Berger's windows-pr package. It goes along with his win32-api package. Has the Windows "unicode.rb"

      In windows-apt-0.4.0 there's a complementary file "wide_string.rb"

      I'm not here much anymore.

      1 條回覆 最後回覆 回覆 引用 0
      • 1
      • 2
      • 3
      • 3 / 3
      3 / 3
      • 第一個貼文
        41/42
        最後的貼文
      Buy SketchPlus
      Buy SUbD
      Buy WrapR
      Buy eBook
      Buy Modelur
      Buy Vertex Tools
      Buy SketchCuisine
      Buy FormFonts

      Advertisement