Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Accented character de batch files  (Read 3633 times)

0 Members and 1 Guest are viewing this topic.

Alexandre Oliveira

    Topic Starter


    Starter

    Accented character de batch files
    « on: March 25, 2008, 12:27:22 PM »
    I'm using a Windows XP SP2
    The Regional and Language Options are set for Portuguese (Brazil)
    Many folders and file names are written in Portuguese.
    When using the Command Prompt I type in Portuguese and command works fine.

    But when processing the same command through a batch file the characters are changed (not accepted) and it does not work!
    Is the any solution similar as quotation marks (") for special characters?

    Dias de verano

    • Guest
    Re: Accented character de batch files
    « Reply #1 on: March 25, 2008, 12:35:16 PM »
    what code page are you using (type chcp at the prompt to find out)

    Alexandre Oliveira

      Topic Starter


      Starter

      Re: Accented character de batch files
      « Reply #2 on: March 27, 2008, 12:49:12 PM »
      Active Code Page: 850

      Dias de verano

      • Guest
      Re: Accented character de batch files
      « Reply #3 on: March 27, 2008, 01:13:49 PM »
      Code page 850 is standard US English. Perhaps if you change the code page to 1252 Portuguese (Portugal / Brazil)...

      type this at the prompt

      chcp 1252




      Alexandre Oliveira

        Topic Starter


        Starter

        Re: Accented character de batch files
        « Reply #4 on: March 28, 2008, 09:30:36 AM »
        The Code page 1252 works when the the folder or file's name is not between quotes, used for special characters like space.

        Any other suggestion?