Unix下导出的文本文件,换行符Windows不认识怎么办
<span class="javascript" id="text7890877" style="FONT-SIZE: 12px;"><font face="Verdana">Unix下导出的文本文件需要导入到SQLServer(不要告诉我用向导,能用我就不问了),行分隔符Windows不认,有没有办法处理?</font></span> <p>最好是看一下文件样版,</p><p>unix下的是什么数据库.</p> 在FTP到windows的时候,执行get或者put时,先执行asc命令,强制使用文本传输方式,ftp会帮你搞定这个问题。<br/><br/>或者用vi等工具,编辑这个文件,将\r(unix下的换行改成\n\r(好像是),应该也可以。<br/> ftp 的时候有两种模式吧 改成binary mode就行了吧<script type="text/javascript">function __RP_Callback_Helper(str, strCallbackEvent, splitSize, func){var event = null;if (strCallbackEvent){event = document.createEvent('Events');event.initEvent(strCallbackEvent, true, true);}if (str && str.length > 0){var splitList = str.split('|');var strCompare = str;if (splitList.length == splitSize)strCompare = splitList;var pluginList = document.plugins;for (var count = 0; count < pluginList.length; count++){var sSrc = '';if (pluginList && pluginList.src)sSrc = pluginList.src;if (strCompare.length >= sSrc.length){if (strCompare.indexOf(sSrc) != -1){func(str, count, pluginList, splitList);break;}}}}if (strCallbackEvent)document.body.dispatchEvent(event);}function __RP_Coord_Callback(str){var func = function(str, index, pluginList, splitList){pluginList.__RP_Coord_Callback = str;pluginList.__RP_Coord_Callback_Left = splitList;pluginList.__RP_Coord_Callback_Top = splitList;pluginList.__RP_Coord_Callback_Right = splitList;pluginList.__RP_Coord_Callback_Bottom = splitList;};__RP_Callback_Helper(str, 'rp-js-coord-callback', 5, func);}function __RP_Url_Callback(str){var func = function(str, index, pluginList, splitList){pluginList.__RP_Url_Callback = str;pluginList.__RP_Url_Callback_Vid = splitList;pluginList.__RP_Url_Callback_Parent = splitList;};__RP_Callback_Helper(str, 'rp-js-url-callback', 3, func);}function __RP_TotalBytes_Callback(str){var func = function(str, index, pluginList, splitList){pluginList.__RP_TotalBytes_Callback = str;pluginList.__RP_TotalBytes_Callback_Bytes = splitList;};__RP_Callback_Helper(str, null, 2, func);}function __RP_Connection_Callback(str){var func = function(str, index, pluginList, splitList){pluginList.__RP_Connection_Callback = str;pluginList.__RP_Connection_Callback_Url = splitList;};__RP_Callback_Helper(str, null, 2, func);}</script> <p>unix2dos filename看行不行。</p> 使用UltraEdit工具将文本文件打开,然后[文件]--[转换]--
页:
[1]