EldoS | Feel safer!

Software components for data protection, secure storage and transfer

outputstream of fhttp in filestream - missing utf8 character

Also by EldoS: MsgConnect
Cross-platform protocol-independent communication framework for building peer-to-peer and client-server applications and middleware components.
#33873
Posted: 07/03/2015 08:05:15
by Walter Schrabmair (Priority Standard support level)
Joined: 05/03/2013
Posts: 150

HI,
I do a POST with Telhttpsclient and define before the OUtputstream to a created filestream. It works fine. But I get an FILE where the accute c character is a normal c. When I download the file via the providers WWW download function (as I saw in fiddler is the same post with all params the same) in the save file there is the c with the accute. It is a csv file and I can see in excel that the c is fine. I use XE6 and the latest SBB. How can I get the accute c (UTF8) char with SBB? thanks
#33874
Posted: 07/03/2015 08:34:38
by Eugene Mayevski (EldoS Corp.)

Do I understand it right that you are talking about the data the server sends you?

SecureBlackbox works with binary data and saves whatever it receives as a binary. Maybe you perform some conversion under the hood OR the way you look into the file hides this character.


Sincerely yours
Eugene Mayevski
#33875
Posted: 07/03/2015 08:43:56
by Walter Schrabmair (Priority Standard support level)
Joined: 05/03/2013
Posts: 150

ok, But I found this: http://docwiki.embarcadero.com/CodeExamples/XE7/en/TEncoding_(Delphi)

Must I encode the Filestream to UTF8?
I trie to enter this but have confilcts with TByte and SSB12.0.272.
As you told us, that this should be sovled already.
https://eldos.com/forum/read.php?FID=7&TID=5504
#33876
Posted: 07/03/2015 08:54:14
by Eugene Mayevski (EldoS Corp.)

Once again - SecureBlackbox itself receives the data as binary and writes them to the binary stream. How you read the data after that is up to you - SecureBlackbox is not related to that in any way.


Sincerely yours
Eugene Mayevski
#33877
Posted: 07/03/2015 08:55:58
by Walter Schrabmair (Priority Standard support level)
Joined: 05/03/2013
Posts: 150

ok, I inspected with fiddler:

The file from the server comes by WWW Download with accute.
ANd in SSB not.
Must I define an Encodeing Parameter in ElHTTPSCLient?
thanks
#33878
Posted: 07/03/2015 09:08:24
by Walter Schrabmair (Priority Standard support level)
Joined: 05/03/2013
Posts: 150

I found this as differences between the 2 sessions:
Accept-Encoding: gzip, deflate, sdch

where the accute is not sended the sdch is missing. What does sdch mean?
Thanks a lot!
#33879
Posted: 07/03/2015 09:13:29
by Eugene Mayevski (EldoS Corp.)

SDCH is http://blog.endpoint.com/2009/07/sdch...-over.html . We don't support it and don't have plans to support it. However this setting must not affect the content being transferred. If it does, then its the server bug.


Sincerely yours
Eugene Mayevski
#33880
Posted: 07/03/2015 09:15:05
by Eugene Mayevski (EldoS Corp.)

Just a thought - you need to inspect what the server returns *before* the data gets to SecureBlackbox, i.e. using Fiddler. This will let you know if the server sends the accented character in response to SecureBlackbox request or it doesn't. If the server doesn't send it, then you need to contact the server admin and ask why the hell it doesn't. If the server does send this accented character, then check how you handle the data after it's saved.


Sincerely yours
Eugene Mayevski
#33881
Posted: 07/03/2015 09:31:59
by Walter Schrabmair (Priority Standard support level)
Joined: 05/03/2013
Posts: 150

Thanks a lot. Yes the server sends no accended character before I get it by stream in my SSB. But when I use the WWW download function by Chrome, the server sends indeed the accended char. I also think that SBB and my code is not to blyme. But I really dont know even both session are the same (of course the sid and gids are not.) Thanks anyway. best
#33882
Posted: 07/03/2015 09:36:14
by Walter Schrabmair (Priority Standard support level)
Joined: 05/03/2013
Posts: 150

I got it. By the WWW doanload function by chrome was an option to select the desired fields or the standard fields. When I use the standard fields, then I also get the accute. Sorry that I have bothered you.
Also by EldoS: CallbackFilter
A component to monitor and control disk activity, track file and directory operations (create, read, write, rename etc.), alter file data, encrypt files, create virtual files.

Reply

Statistics

Topic viewed 1789 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!