root / drupal7 / sites / all / modules / feeds / tests / feeds / encoding.csv.php @ a192dc0b
1 |
<?php
|
---|---|
2 |
/**
|
3 |
* @file
|
4 |
* Result of encoding_{code}.csv file parsed by ParserCSV.inc
|
5 |
*/
|
6 |
|
7 |
// JSON is used here because it supports unicode literals. PHP does not.
|
8 |
$json = <<<EOT |
9 |
[
|
10 |
[
|
11 |
"id",
|
12 |
"text"
|
13 |
],
|
14 |
[
|
15 |
"1",
|
16 |
"\u672c\u65e5\u306f\u3044\u3044\u5929\u6c17"
|
17 |
],
|
18 |
[
|
19 |
"2",
|
20 |
"\uff71\uff72\uff73\uff74\uff75"
|
21 |
],
|
22 |
[
|
23 |
"3",
|
24 |
"\u30c6\u30b9\u30c8"
|
25 |
],
|
26 |
[
|
27 |
"4",
|
28 |
"\u2605"
|
29 |
]
|
30 |
]
|
31 |
EOT;
|
32 |
|
33 |
$control_result = json_decode($json); |