File request charset problem

Technical discussion about the NMDC and <a href="http://dcpp.net/ADC.html">ADC</A> protocol. The NMDC protocol is documented in the <a href="http://dcpp.net/wiki/">Wiki</a>, so feel free to refer to it.

Moderator: Moderators

Locked
Dmitro
Posts: 1
Joined: 2006-05-18 05:29

File request charset problem

Post by Dmitro » 2006-05-22 06:26

In our LAN most people use Windows and DC++ 0.668, some use Strong DC.I use microdc for Linux (patched). Problem occurs when users want to download file shared by me. DC++ sends request for file in UTF-8 charset, when Strong DC uses CP1251 charset. My linux machine uses charset KOI8-R. All these charsets are for russian language. The question is: how my microdc can know in what charset file request from remote machine have been sended?Or how to tell remote clients (DC++) to use CP1251 instead of UTF-8?
Many thanks for your help.

GargoyleMT
DC++ Contributor
Posts: 3212
Joined: 2003-01-07 21:46
Location: .pa.us

Post by GargoyleMT » 2006-05-22 17:51

It depends. If the user has queued from your XML (which is defined as UTF-8), they will use $UGet(Z)Block, and that is defined to be UTF-8. Or they can use $ADCGET, which is also defined to be UTF-8.

If they're queueing from a search result or old file list, they should use whatever their local code page is set to, which cannot be UTF-8.

It sounds like you're seeing a problem which should theoretically never occur.

Locked