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