Jump to content

chkaufmann

Members
  • Content Count

    6
  • Joined

  • Last visited

Community Reputation

0 Neutral

Technical Information

  • Delphi-Version
    Delphi 10.2 Tokyo
  1. chkaufmann

    Rio 10.3.1 IDE Compiler Error

    Well, for me this kind of solutions are fine in the world of "Open Source Tools", but not when I'm forced to pay a subscription fee. In our case the compiler not even shows us the exact location. I just get the error "[dcc32 Fatal Error] F2084 Internal Error: DBG1226" during compilation, well in fact during linking. And the only QC report with this error I found is the one listed above. So in the end I don't know where to search the error in a project with several hundred thousand lines of code. I use generic functions in different places, but having these removed is a "showstopper" for me. Christian
  2. Hi, we already missed 10.3, now 10.3.1 is available but we can still not move to the new version because IDE compiler errors are still not fixed. Our major project is quite large but what we found is, that this issue is probably the problem we have: https://quality.embarcadero.com/browse/RSP-22307 What is the best way to get this fixed now? It's unresolved since 4 months now and having such a "show stopper" all the new fancy features in the IDE are just useless when such basics like the compiler don't work. Christian
  3. My input is a string and I would like to know if: - the string contains cyrillic characters - the string contains greek characters - the string contains thai characters Or more general: If the string contains characters, that are not "near the latin characters". So for äèü it should be false, but for Афонина it should be true. Christian
  4. chkaufmann

    Request to Google Translate API

    I had to set the Accept-Language header, now it works, at least with Russian names. I wasn't aware of the TIdLog components. Good to know because my simple test did not work with Thai and Hebrew names, but I have to investigate there further first because when I paste these characters to the source code file, they look different even though my source file is UTF-8. Christian
  5. chkaufmann

    Request to Google Translate API

    Thanks for the corrections. However, it still doesn't work and I don't get the translated name in the answer. There must be something else that is done different by the browser. Christian
  6. chkaufmann

    Request to Google Translate API

    Hi, if I enter the following url in my browser, I get a result file with the name "Müller" translated to russian characters: https://translate.googleapis.com/translate_a/single?client=gtx&sl=de&tl=ru&dt=t&q=Müller I tried to implement that with TIdHTTP, but something is missing and I don't find the problem. Here is my code: var data : String; http : TIdHTTP; sslIO : TIdSSLIOHandlerSocketOpenSSL; tmp : TStringStream; url : String; begin http := TIdHTTP.Create(nil); http.HTTPOptions := http.HTTPOptions + [hoNoProtocolErrorException, hoWantProtocolErrorContent]; sslIO := TIdSSLIOHandlerSocketOpenSSL.Create(nil); sslIO.SSLOptions.SSLVersions := [sslvTLSv1, sslvTLSv1_1, sslvTLSv1_2]; sslIO.SSLOptions.Mode := sslmUnassigned; sslIO.SSLOptions.VerifyMode := []; sslIO.SSLOptions.VerifyDepth := 0; http.IOHandler := sslIO; url := TIdUri.UrlEncode('https://translate.googleapis.com/translate_a/single?client=gtx&sl=de&tl=ru&dt=t&q=Müller'); tmp := TStringStream.Create; http.Get(url, tmp); data := tmp.DataString; tmp.Free; http.Free; end; I expect to get the following string (like in the browser): [[["мельник","Müller",null,null,0]],null,"de"] Can somebody tell me what is wrong in my code? Christian
×