发表文章
开源讨论

在字段中嵌入的新行字符被删除 New line characters embedded in fields get removed[csv]

HeyRatFans 阅读(4) 评论(2) 0

在修复请求 #121 时发现, 当使用读取器读取在域中嵌入了 Linux 样式的新行的 CSV 时, 将错误地删除新行。例如, 给定数据 1,..。 As discovered while fixing up pull request #121, when using Reader to read a CSV with Linux-style new-lines embedded in fields, the new-lines are erroneously removed. For example, given the data 1,...

开源讨论

引用所有字段 Quoting all fields[csv]

DixxieFlatline 阅读(4) 评论(2) 0

您好, 我试图用双引号括起所有字段, 但我不能得到它。如果使用以下格式化程序: $formatter = 函数 ($row) {返回 array_map (函数 ($field) {retur..。 Hello, I'm trying to enclose all fields with double quotes but I can't get it. If using the following formatter: $formatter = function ($row) { return array_map(function ($field){ retur...

开源讨论

在实例化时修整 Trimming on instantiation[csv]

rwitchell 阅读(4) 评论(2) 0

您好, 我有一个关于实例化修剪的关注。 公共静态函数 createFromString ($str, $newline = "n") {$file = 新 SplTempFileObject (); $file fwrite (rtrim ($str)..。 Hi, I have a concern with the trim on instantiation. public static function createFromString($str, $newline = "\n") { $file = new SplTempFileObject(

开源讨论

$dbh-准备错误 $dbh->prepare error[csv]

thamerbelfkihthamer 阅读(4) 评论(1) 0

您好, 我要使用 $dbh-准备插入 csv 数据到我的数据库, 但 $dbh 给我一个错误 (他没有定义)。我用 laravel 5。2有解决这个问题的办法吗? hello , i want use $dbh->prepare to insert csv data to my database but $dbh give me a error ( his not defined). i'm use laravel 5.2. any solution for this problem ?

开源讨论

SplFileObject 标志没有效果/空行不能忽略 SplFileObject Flags have no effect / empty lines cannot be ignored[csv]

paslandau 阅读(4) 评论(8) 0

我刚刚从7.0.1 更新到 7.1.0, 并注意到, 由于在导入的每个 CSV 文件末尾追加了一个 null 值, 所以内部测试失败。经过一些试验和错误, 我想通了, th..。 I just updated from 7.0.1 to 7.1.0 and noticed that my internal tests failed due to a null value appended at the end of each CSV file that was imported. After some trial and error I figured that th...

开源讨论

读取器类中的更多迭代程序 more iterators in the Reader class[csv]

nyamsprod 阅读(7) 评论(6) 0

现在的读者:: 读取 * 方法全部返回一个数组。这种行为在以下情况下是可以的: 使用的方法是:: fetchOne, 因为它总是返回一行你是处理一个小的 CSV, 如果你使用 th..。 As of now the Reader::fetch* methods all return an array. This behavior is okay when: the method use is Reader::fetchOne as it always return one row you are dealing with a small CSV if you used th...

开源讨论

分隔符格式验证 Delimiter format validation[csv]

enriquemanuel 阅读(20) 评论(1) 0

当指定分隔符为 tab 时, 其不工作 $reader = 读取器:: createFromPath ($download _file); $delimiter = $reader-setDelimiter ("\ t"); 出现错误: 分隔符必须为 b..。 When specifying the delimiter to tab, its not working $reader = Reader::createFromPath($download_file); $delimiter = $reader->setDelimiter('\t'); There is an error that

开源讨论

字符替换 Character replacement[csv]

louposk 阅读(7) 评论(1) 0

您好, 我尝试创建一些 csv 字段作为示例 $data = [[' "1", "名称", "姓氏", [' 2 "," 名称 "," 姓氏 "," "," 3 "," 名称 "," 姓氏 ""]]; ... Hello, i am trying to create some csv fields as the example $data = [ ['"1","name", "surname"'], ['"2","name", "surname"'], ['"3","name", "surname"'] ]

开源讨论

向库中添加流过滤功能 Adding Stream Filtering capabilities to the library[csv]

nyamsprod 阅读(16) 评论(1) 0

到目前为止, 图书馆没有处理好 CSV 编码在不同的 charsets。要解决这个问题, 我们可以使用 PHP 流过滤函数。但这些函数并不局限于编码..。 As of now the library does not handle well CSV encoded in different charsets. To resolve this issue we can use PHP stream filter functions. But those functions are not restricted to encoding proble...

开源讨论

setOffset () 不受 toHTML () setOffset() is not respected with toHTML()[csv]

hervethouzard 阅读(8) 评论(7) 0

您好, 我有一个 csv 文件, 我不想使用前3行, 然后我想转换成一个 html 表。 所以我用了这样的东西: $inputCsv = 读者: createFromString (...) $in..。 Hello, I have a csv file from which I don't want to use the first 3 lines then I want to convert it to an html table. So I used something like this: $inputCsv = Reader::createFromString(.....); $in

开源讨论

将物料清单添加到输出文件 Add BOM to outputed file[csv]

romeromsk 阅读(7) 评论(34) 0

你好. 请添加一个配置选项, 以便在输出文件的开头写入 BOM (\n xEF \ xBB \ xBF)。 解决了在 MS Excel 中打开 UTF-8 编码的 csv 文件的问题。请参阅 http://stackoverflow.co..。 Hello. Please add a config option to write BOM (\xEF\xBB\xBF) in the begining of outputed file. It solves the problem of opening UTF-8 encoded csv-file in MS Excel. Refer to htt

开源讨论

HHVM 支持 HHVM support[csv]

nyamsprod 阅读(13) 评论(1) 0

我似乎 HHVM 支持 CallbackFilterIterator 从版本3.2。然而, 图书馆的测试套件仍然没有通过 HHVM。我们应该调查失败的测试, 并解决所有这一问题 I would seems that HHVM supports CallbackFilterIterator since version 3.2. Yet the Library test suite still does not pass on HHVM. We should investigate the failed test and fix once for all this issue

开源讨论

从 Windows UTF-8 导入 CSV 返回 NULL Importing CSV from Windows UTF-8 return NULL[csv]

ghost 阅读(10) 评论(2) 0

当 CSV 文件是美国标准, 只有字母 (12月) 的代码从正33到127的进口工程罚款。 其他本地化, 非英语语言, 像 "óęłńśżźŻŹĆÓŁĘŚŃ" 的字母返回所有字段在 o..。 When CSV file is an US standard, has only letters (Dec) code from c.a. 33 to 127 imports works fine. Other Localisation, non english languages, letters like "óęłńśżźŻŹĆÓŁĘŚŃ" return all fields in o...

发表文章

调试网

开源调试指南

文章数
34426
评论数
156406
用户数
94056