Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. ActiveQT problem with the transfer Russian characters!!!
Forum Updated to NodeBB v4.3 + New Features

ActiveQT problem with the transfer Russian characters!!!

Scheduled Pinned Locked Moved General and Desktop
17 Posts 4 Posters 9.1k Views 1 Watching
  • 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.
  • _ Offline
    _ Offline
    _KUL
    wrote on last edited by
    #8

    Using pure Qt 4.8.5
    Well you guessed thought about MS VS2010. I will think how to tie the Qt libraries to VS2010.

    Не знаю на сколько правильно мысль перевел translate.google.ru, на всякий случай по русски напишу :)
    Использую чистый Qt 4.8.5
    Хорошу вы мысль предположили насчёт MS VS2010. Буду думать, как библиотеки Qt прикрутить к VS2010.

    1 Reply Last reply
    0
    • T Offline
      T Offline
      terenty
      wrote on last edited by
      #9

      --

      --

      Did this one:
      @QTextCodec::setCodecForCStrings(QTextCodec::codecForName("Windows-1251"));

      querySubObject(QString::fromWCharArray(L"ПользователиИнформационнойБазы").toUtf8());@

      also not work?

      Тоесть я так понимаю ты сейчас в QtCreator'е сидишь? Думаю большой разницы не будет если в MSVC2010 переешь. Просто удобней если ты к студии привык.
      Попробуй как я выше написал, если еще не пробовал, может прокатит наконецтаки )

      Только тут как-бы по русски нельзя - начнут замечания делать :)

      1 Reply Last reply
      0
      • _ Offline
        _ Offline
        _KUL
        wrote on last edited by
        #10

        Ок, будем по инглишу через гугл транслейтер ...

        tried and toUtf8 () and toAscii () does not work ...
        I think that the problem is not in the coding and in the transformation, and in QAxBase class. For example, if the above view, it is displayed as correct as qDebug, and the interface itself is not true querySubObject takes. I tried to adjust the encoding to std::cout correctly deduced, and then tried to give ActiveX, did not work ... It's a shame that with all the fine words in English and Russian with error ... :(
        As a fan of free software just sit under the Qt :)

        1 Reply Last reply
        0
        • _ Offline
          _ Offline
          _KUL
          wrote on last edited by
          #11

          I want to help :( ...

          1 Reply Last reply
          0
          • B Offline
            B Offline
            b-s-a
            wrote on last edited by
            #12

            Russian discussion is here:
            http://forum.vingrad.ru/index.php?show_type=forum&showtopic=370551&kw=кодировка-ошибка

            1 Reply Last reply
            0
            • _ Offline
              _ Offline
              _KUL
              wrote on last edited by
              #13

              I created the theme. There are solutions to this problem is not found, so I created a thread in the forum Qt.

              1 Reply Last reply
              0
              • _ Offline
                _ Offline
                _KUL
                wrote on last edited by
                #14

                up top my question

                1 Reply Last reply
                0
                • _ Offline
                  _ Offline
                  _KUL
                  wrote on last edited by
                  #15

                  is up up

                  1 Reply Last reply
                  0
                  • _ Offline
                    _ Offline
                    _KUL
                    wrote on last edited by
                    #16

                    anybody here?

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      snasoft
                      wrote on last edited by
                      #17

                      [quote author="_KUL" date="1383200349"]anybody here?[/quote]

                      Возможно ответ будет уже не актуален, но все же.

                      QString::toLocal8Bit() пробовали?

                      Еще (как вариант) можно перебрать различные кодировки (которые потенциально могут использоваться). Некий брутфорс. Я бы сделал это так: создал текстовый файл в одну строку ("ПользователиИнформационнойБазы"), потом считывал бы содержимое в QByteArray и передавал в querySubObject. Изменение кодировки выполняется например с помощью Notepad++.

                      1 Reply Last reply
                      0

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved