Announcement

Collapse
No announcement yet.

Portuguese accents

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Portuguese accents

    Hi guys.

    Hope you can help me.

    When i open a text file from the windows world i don't get the portuguese letters correctly.
    It happens with all kind of text files.
    I attached two png's so you can see with you own eyes.
    Both the attachements are from a .srt file. Needless to say that i can hardly watch a video on xine or kmplayer.

    Thanks for any kind reply
    Attached Files
    Distributor ID: Ubuntu
    Description: Ubuntu Trusty Tahr (development branch)
    Release: 14.04
    Codename: trusty

    #2
    Re: Portuguese accents (Resolved)

    It seems to be okay after this change to /etc/enviroment

    LANG="iso8859-15"
    #LANG="en_US.UTF-8"
    LANGUAGE="en_US:en"

    Is this the correct fix?

    Thanks.
    Distributor ID: Ubuntu
    Description: Ubuntu Trusty Tahr (development branch)
    Release: 14.04
    Codename: trusty

    Comment


      #3
      Re: Portuguese accents

      It seems that the change has broke something

      ---

      After unpacking 7250kB of additional disk space will be used.
      perl: warning: Setting locale failed.
      perl: warning: Please check that your locale settings:
              LANGUAGE = "en_US:en",
              LC_ALL = (unset),
              LANG = "iso8859-15"
          are supported and installed on your system.
      perl: warning: Falling back to the standard locale ("C").
      locale: Cannot set LC_CTYPE to default locale: No such file or directory
      locale: Cannot set LC_MESSAGES to default locale: No such file or directory
      locale: Cannot set LC_ALL to default locale: No such file or directory
      DESTROY created new reference to dead object ' Qt::VBoxLayout', <> line 1 during global destruction.
      Preconfiguring packages ...
      Use of uninitialized value in join or string at /usr/share/perl5/Debconf/DbDriver/Stack.pm line 104, <GEN1> line 4.
      Use of uninitialized value in join or string at /usr/share/perl5/Debconf/DbDriver/Stack.pm line 104, <GEN1> line 6.
      Use of uninitialized value in substitution (s///) at /usr/share/perl5/Debconf/Format/822.pm line 83.
      Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/Debconf/Format/822.pm line 84.
      Use of uninitialized value in substitution (s///) at /usr/share/perl5/Debconf/Format/822.pm line 83.
      Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/Debconf/Format/822.pm line 84.
      Selecting previously deselected package samba.
      (Reading database ... 100232 files and directories currently installed.)
      Unpacking samba (from .../samba_3.0.22-1ubuntu3.1_i386.deb) ...
      Setting up samba (3.0.22-1ubuntu3.1) ...
      perl: warning: Setting locale failed.
      perl: warning: Please check that your locale settings:
              LANGUAGE = "en_US:en",
              LC_ALL = (unset),
              LANG = "iso8859-15"
          are supported and installed on your system.
      perl: warning: Falling back to the standard locale ("C").
      locale: Cannot set LC_CTYPE to default locale: No such file or directory
      locale: Cannot set LC_MESSAGES to default locale: No such file or directory
      locale: Cannot set LC_ALL to default locale: No such file or directory
      Use of uninitialized value in join or string at /usr/share/perl5/Debconf/DbDriver/Stack.pm line 104, <GEN1> line 4.
      Use of uninitialized value in join or string at /usr/share/perl5/Debconf/DbDriver/Stack.pm line 104, <GEN1> line 6.
      perl: warning: Setting locale failed.
      perl: warning: Please check that your locale settings:
              LANGUAGE = "en_US:en",
              LC_ALL = (unset),
              LANG = "iso8859-15"
          are supported and installed on your system.
      perl: warning: Falling back to the standard locale ("C").
      perl: warning: Setting locale failed.
      perl: warning: Please check that your locale settings:
              LANGUAGE = "en_US:en",
              LC_ALL = (unset),
              LANG = "iso8859-15"
          are supported and installed on your system.
      perl: warning: Falling back to the standard locale ("C").
      * Starting Samba daemons...                                                                                                          [ ok ]
      Use of uninitialized value in substitution (s///) at /usr/share/perl5/Debconf/Format/822.pm line 83, <GEN6> line 4.
      Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/Debconf/Format/822.pm line 84, <GEN6> line 4.
      Use of uninitialized value in substitution (s///) at /usr/share/perl5/Debconf/Format/822.pm line 83, <GEN6> line 4.
      Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/Debconf/Format/822.pm line 84, <GEN6> line 4.
      Distributor ID: Ubuntu
      Description: Ubuntu Trusty Tahr (development branch)
      Release: 14.04
      Codename: trusty

      Comment


        #4
        Re: Portuguese accents

        Anyone have a clue? 
        is there a problem with utf8 in ubuntu?

        i've allways used slackware and didn't have this problem before.


        Distributor ID: Ubuntu
        Description: Ubuntu Trusty Tahr (development branch)
        Release: 14.04
        Codename: trusty

        Comment


          #5
          Re: Portuguese accents ***UPDATED***

          Another clue.

          It only happens in KDE/Xorg, it must be a disconfiguration somewhere in kde.

          If i login in text mode without kde runnning i can see all the right chars with
          utf mode in /etc/enviroment

          Is this a bug?

          ***UPDATE****

          It only displays correctly  in vi(m) editor 
          if i do $cat <file> or $less <file> it don't display correctly.

          i tested with the desktop install in qemu and it happens the same even after instalation. In slackware under the same qemu it displays correctly.
          In slackware the LANG export is "en_us"

          is there a better place to submit this. I've been using ubuntu only for a week, and i don't seem to get a single answer around here



          Distributor ID: Ubuntu
          Description: Ubuntu Trusty Tahr (development branch)
          Release: 14.04
          Codename: trusty

          Comment


            #6
            Re: Portuguese accents

            Sorry,
            but it seems this is the only way that this topic don't get forgotten. 

            You can allways delete it if you want.

            Any ideas?
            Distributor ID: Ubuntu
            Description: Ubuntu Trusty Tahr (development branch)
            Release: 14.04
            Codename: trusty

            Comment


              #7
              Re: Portuguese accents

              For me (I'm russian)
              this works fine:
              LANG="ru_RU.KOI8-R"
              LANGUAGE="ru_RU:ru:en_GB:en"

              Is iso8859-15 okey?
              Sorry, I don't know
              And, I think you should set LANG and LANGUAGE to one language...
              May be I'm wrong

              Languages are ubuntu's thin place

              Comment


                #8
                Re: Portuguese accents

                Hi tribunal, thanks for replying.

                Tell me something, are you using Kde and the rest in Russian native language or in English?

                I'm using English language in all the programs (System, KDE, etc), but when i change LANG to ISO8859-1(5) i can read the files but then i start to
                have problems with the locale, eg:Perl and debconf like the output that i've pasted before.
                I'm starting to think that it must be a bug with kubuntu, beause on vi i can edit all the files that come from windows, but only on VI(M).

                Distributor ID: Ubuntu
                Description: Ubuntu Trusty Tahr (development branch)
                Release: 14.04
                Codename: trusty

                Comment


                  #9
                  Re: Portuguese accents

                  All programs are in russian here, including KDE
                  There are several problems: some applications are still trying to use UTF-8 instead of KOI-8
                  Event after installing all language packages (there are 2 common language packages in Kubuntu, as I remember and language packages for KDE, OOo and so on)

                  Comment


                    #10
                    Re: Portuguese accents

                    Hi.

                    It seems that i will have to live with that.
                    Nevertheless is strange because i've been using slackware four the last 4 years and i never did have this problem before.

                    I have seem that if i change the default $LANG to iso8859-1(5) everything displays well but some things get broken with perl and debconf. So the solution is before i update or install some package i do a export  LANG="en_US.UTF-8.
                    As a final example this is a file that is on a server here at my work place on a windows 2k3 server. This file was exported by myself with slackware linux current two weeks ago.
                    Attached Files
                    Distributor ID: Ubuntu
                    Description: Ubuntu Trusty Tahr (development branch)
                    Release: 14.04
                    Codename: trusty

                    Comment


                      #11
                      Re: Portuguese accents

                      In russian I can seen only rectangles instead of letters
                      That is why Mandriva is still alive
                      It is not so good in packages or hardware, but it has over 60 languages out from the box without a problem

                      Comment


                        #12
                        Re: Portuguese accents

                        Maybe someone with inside knowledge of debian or ubuntu will see this post
                        and have a brighter solution

                        Thanks tribunal.

                        BTW: In Portuguese "tribunal" means court, as in court of law.
                        Distributor ID: Ubuntu
                        Description: Ubuntu Trusty Tahr (development branch)
                        Release: 14.04
                        Codename: trusty

                        Comment


                          #13
                          Re: Portuguese accents

                          In russian, tribunal is a court (very cruel, usually) in army
                          The decision usually is "Kill them ALL!"

                          Comment

                          Working...
                          X