sketchucation logo sketchucation
    • Login
    🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    Umlaut in file name

    Scheduled Pinned Locked Moved Developers' Forum
    8 Posts 5 Posters 1.9k Views 5 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Al HartA Offline
      Al Hart
      last edited by

      I am having a problem process a file which has an Umlaut in the file name.

      If I replace the 'ä'in the file name with 'ae' then it works, but, of course, I cannot expect clients to change their path names.

      (I indented the Ruby Console responses to make this easier to read.)
      (The first file name is not recognized as a legitimate file.)

      
      sfile1 = UI.openpanel
          C;\Klär\test1
      File.exists?(sfile1)
          false
      
      sfile2 = UI.openpanel
          C;\Klaer\test2
      File.exists?(sfile2)
          true
      
      
      
      

      This has nothing to do with the use of UI.openpanel. It fails if I just include the path name directly:

      
      File.exists?("c;\\Klär\\test1")
          false
      
      File.exists?("c;\\Klaer\\test2")
          true
      
      
      

      Any ideas?

      Have German users had problems locating other files with SketchUp in paths with Umlauts?

      Al Hart

      http:wiki.renderplus.comimageseefRender_plus_colored30x30%29.PNG
      IRender nXt from Render Plus

      1 Reply Last reply Reply Quote 0
      • T Offline
        todd burch
        last edited by

        Sketchup has issues with ASCII char codes coming in from Ruby that are > X'7F'. I reported this bug when I wrote the 3D Text tool - same issue - German users wanted to use their alphabet and SketchUp hosed the string. Other diactitics failed too.

        In this latest maintenance release, M3, a lot of work was done for internationalization. Perhaps they fixed it. I've downloaded the Mac version, but have not installed it yet.

        Todd

        1 Reply Last reply Reply Quote 0
        • Al HartA Offline
          Al Hart
          last edited by

          Thanks Todd.

          Is "M3" Version 6.0.1099 (for Windows). If so, then it still has the problem I reported.

          Al Hart

          http:wiki.renderplus.comimageseefRender_plus_colored30x30%29.PNG
          IRender nXt from Render Plus

          1 Reply Last reply Reply Quote 0
          • T Offline
            todd burch
            last edited by

            Yes.

            Bummer.

            Raise a stink.

            Todd

            1 Reply Last reply Reply Quote 0
            • A Offline
              azuby
              last edited by

              Yeah, we really do have problems with our Umlauts and the "ß" ("s z", for things like "Straße" (street), because it isn't a "Strasse" or a "Strasze" - differen pronunciation; German writing Swiss do not use the "ß"). But that's not only a problem of Germans. French (and others) have problems with accents, people from northern European countries have problems with Eth, O with slash, A with - hm - ring?bubble?don'tknow 😉 ... Best solution would be a full unicode support for Sketchup. Ruby also has unicode support, but that also means, that you have to program with a unicode editor. For the Ruby interpreter you have the option "-K" - so it's "ruby -Ku ascript.rb" or you put on top of your main script:

              $KCODE = 'u'
              require 'jcode'
              

              azuby

              *error initus :: Blocks | CurrentDate | d/Code | extensionmanager | FFlipper | HideEdges | MeasuredArea | ModelHistory | PluginsHelp | PronButton | SAWSO | SCP | SU²CATT

              Bad English? PM me, correct me. :smile:**

              1 Reply Last reply Reply Quote 0
              • GaieusG Offline
                Gaieus
                last edited by

                Yeah,

                I also have problems with our öüóőúíéáű characters (with Kerkythea, for instance that does not accept them even in the paróths) so I needed to change my folder names to fit this.

                Soon I will end up with using an English verion of Windows if it is going on like this (fortunately neither my "username" in my system nor the Hungarian equvivalent for "desktop" contains these characters).

                But this is not ruby scripting so sorry for hijacking the thread...
                😄

                Gai...

                1 Reply Last reply Reply Quote 0
                • eevaE Offline
                  eeva
                  last edited by

                  gai, that was not hijacking, since al asked, if we have problems...

                  as soon as i have an umlaut in my filepath or filename, i can't export a dwg-file out of SU. no problem in exporting it on the desktop, which is "schreibtisch" in german, but imagine, in finish it is "työpöytä". a real tongue-breaker 😄

                  as a workaround i use only ae instead of ä, ss instead of ß, an so on... an if necessary, i can rename it before i send a thing to the client.

                  1 Reply Last reply Reply Quote 0
                  • Al HartA Offline
                    Al Hart
                    last edited by

                    Thanks for all the information.

                    Umlauts and other accents are more of a problem then I expected.

                    I am going to look into some things and I will report back. It looks like they are supported in Ruby and SketchUp for some things, but then lost for some other things.

                    Al Hart

                    http:wiki.renderplus.comimageseefRender_plus_colored30x30%29.PNG
                    IRender nXt from Render Plus

                    1 Reply Last reply Reply Quote 0
                    • 1 / 1
                    • First post
                      Last post
                    Buy SketchPlus
                    Buy SUbD
                    Buy WrapR
                    Buy eBook
                    Buy Modelur
                    Buy Vertex Tools
                    Buy SketchCuisine
                    Buy FormFonts

                    Advertisement