This project is read-only.

Support of unicode

Dec 1, 2010 at 9:16 AM

I have below code:


string fileName = "c:\\<chinese characters>\\file.pcap"

OfflinePacketDevice selectedDevice = new OfflinePacketDevice(fileName);


When I run the code, I got error " Unable to open the adapter. Adapter name: file://C:\\????????\file.pcap". It seems that chinese characters are not supported.

How can I input the path with Chinese characters?


Feb 5, 2011 at 2:43 PM

Hi cosmosfang,



This was indeed not supported but I've just submitted a Change Set (55363) that adds supports for that.


You can either wait for the next version of Pcap.Net (no idea when that will happen) or download the source code and build it yourself using Pcap.Net Developer's Guide.


Note that when you write to pcap files using PacketCommunicator.OpenDump() only ISO-8859-1 characters filenames are supported.

When you read a pcap file, any Unicode filename is supported.