问题描述
要使用Internet Direct(Indy)进行跨平台开发,启用或最新的RC(2.6.2rc1),因为它可能从2.6.0以前更新。
Free Pascal has an iconv header (package iconvenc), and that either is delphi compatible or should be easily updatable. Get it from FPC websvn interface module iconvenc or the latest RC (2.6.2rc1), since it might have updated since the year old 2.6.0.
但它更复杂不仅仅是提供标题,因为Windows上的iconv不支持errno,因此不能处理EILSEQ和EI2BIG,所以你需要正确地分配内存(如4 * charsize)。
But it is more complicated than just providing the header, since iconv on windows doesn't support errno, and thus can't handle EILSEQ and EI2BIG, so you need to properly allocate memory up front (like 4*charsize).
我有代码如何处理非errno iconv目标,但是还没有很好的测试。 (见src / iconvert.inc)
I got code how to handle non errno iconv targets PHP, but it hasn't been tested very well. (see src/iconvert.inc)
这篇关于使用Indy 10.5.9在Windows上启用和使用iconv的步骤的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!