<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16825" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN class=869410501-08112009>What support is
there, for unicode character based file names in WinPcap to functions such as
pcap_open_offline?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=869410501-08112009></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=869410501-08112009> I have users
that are trying to open a file with some chineese characters in its filename. As
far as I understand it, fopen under unix (especially under linux) should handle
unicode 8-bit with no problems. Linux also handles wider widths but
only in a non-intentional way where wider width chars are handled
as 8-bit entities (ie. 0x1065 is handled as 2 separate 8-bit chars: 0x65
and 0x10 where order is dependent on
processor endianness.) Under MSFC is different and you have to
use MS specific wfopen and wopen calls which take unicode (or wide chars).
</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=869410501-08112009></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=869410501-08112009>Does WinPcap provide
any support for unicode and call the appropriate "open"
function?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=869410501-08112009></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=869410501-08112009>My library gets its
filename from a java string and it currently converts it to plain UTF-8 charset
and that works fine. But in reality I'd like to support all unicode
widths 8, 16 and even 32 bit. I'm not sure how those wider unicode chars would
be handled. </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=869410501-08112009></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=869410501-08112009>Link to discussion
on this topic in our forums: </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=869410501-08112009><SPAN
class=Apple-style-span
style="WORD-SPACING: 0px; FONT: medium 'Times New Roman'; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; orphans: 2; widows: 2; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><SPAN
class=Apple-style-span
style="FONT-SIZE: 12px; FONT-FAMILY: Tahoma; WHITE-SPACE: pre">http://jnetpcap.com/node/456</SPAN></SPAN></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV align=left><FONT face=Arial size=2>Cheers,</FONT></DIV>
<DIV align=left><FONT face=Arial size=2>mark....</FONT></DIV>
<DIV align=left><SPAN class=869410501-08112009><FONT face=Arial size=2><A
href="http://jnetpcap.com">http://jnetpcap.com</A></FONT></SPAN></DIV>
<DIV align=left> </DIV>
<DIV align=left>"It is impossible to grasp the meaning of the idea of sound
money if one does not realize that it was devised as an instrument for the
protection of civil liberties against despotic inroads on the part of
governments. Ideologically it belongs in the same class with political
constitutions and bills of rights." Ludwig von Mises</DIV>
<DIV> </DIV></BODY></HTML>