我正逐字阅读word文档(Word 97),返回文本忽略美元符号和任何特殊字符。我已将编码设置为
pi@raspberrypi:~ $ curl -v 192.168.1.217
* Rebuilt URL to: 192.168.1.217/
* Hostname was NOT found in DNS cache
* Trying 192.168.1.217...
* Connected to 192.168.1.217 (192.168.1.217) port 80 (#0)
> GET / HTTP/1.1
> User-Agent: curl/7.38.0
> Host: 192.168.1.217
> Accept: */*
>
< HTTP/1.1 302 Found
< Date: Thu, 30 Mar 2017 17:20:43 GMT
* Server Apache/2.4.23 (Win32) OpenSSL/1.0.2h PHP/5.5.38 is not blacklisted
< Server: Apache/2.4.23 (Win32) OpenSSL/1.0.2h PHP/5.5.38
< X-Powered-By: PHP/5.5.38
< Location: http://192.168.1.217/dashboard/
< Content-Length: 0
< Content-Type: text/html
<
* Connection #0 to host 192.168.1.217 left intact
pi@raspberrypi:~ $
在文件开放时间,但它似乎不起作用。
这是我的代码:
(var wordEncode = Microsoft.Office.Core.MsoEncoding.msoEncodingUTF8;)
示例:文档包含587美元,但在程序中读取后,变量&#34; textOftheWord&#34;有587,$符号没有通过。同样,任何特殊字符和带小数的数字都被忽略。
非常感谢您的帮助,谢谢!
答案 0 :(得分:0)
希望这会有所帮助:
for every cell with the same value, print adjacent cell
我可以使用它获得578美元的变量。
此处提出类似问题:Read from word document line by line
原始答案:http://mantascode.com/c-how-to-parse-the-text-content-from-microsoft-word-document/