View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 05113 | Bug reports | Import/Export | public | 2011-04-14 09:48 | 2011-05-04 19:47 |
| Reporter | peterhol | Assigned To | dionet | ||
| Priority | normal | Severity | minor | ||
| Status | closed | Resolution | fixed | ||
| Product Version | 1.91RC6 | ||||
| Fixed in Version | 1.91 | ||||
| Summary | 05113: Wrong text encoding for exported Surveydata_syntax.R | ||||
| Description | When exporting data to R, the fil "Surveydata_syntax.R" is in "Western (Mac OS Roman)" text encoding. When running | ||||
| Steps To Reproduce |
| ||||
| Tags | No tags attached. | ||||
| Attached Files | export_data_r.diff (760 bytes)
Index: export_data_r.php
===================================================================
--- export_data_r.php (revision 9945)
+++ export_data_r.php (working copy)
@@ -219,10 +219,10 @@
echo 'attributes(data)$variable.labels[' . $i . '] <- "'
. addslashes(
- htmlspecialchars_decode(utf8_decode(
+ htmlspecialchars_decode(
mb_substr(
strip_tags_full(
- $field['VariableLabel']),0,$length_varlabel)))) // <AdV> added htmlspecialchars_decode
+ $field['VariableLabel']),0,$length_varlabel))) // <AdV> added htmlspecialchars_decode
. '"' . "\n";
// Create the value Labels!
| ||||
| Bug heat | 4 | ||||
| Complete LimeSurvey version number (& build) | 10000 | ||||
| I will donate to the project if issue is resolved | No | ||||
| Browser | chrome on a mac | ||||
| Database type & version | mysql 5.0.91, 145 | ||||
| Server OS (if known) | linux | ||||
| Webserver software & version (if known) | Apache/2.2.17 | ||||
| PHP Version | 5.2.16 | ||||
|
Patch uploaded. There was an unnecessary utf8_decode function breaking file encoding. |
|
|
Looks good - please commit. |
|
|
Also don't forget to apply the change to the _dev branch, too. |
|
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2011-04-14 09:48 | peterhol | New Issue | |
| 2011-04-14 11:44 | c_schmitz | Assigned To | => dionet |
| 2011-04-14 11:44 | c_schmitz | Status | new => assigned |
| 2011-04-15 17:44 | dionet | File Added: export_data_r.diff | |
| 2011-04-15 17:46 | dionet | Note Added: 14821 | |
| 2011-04-15 23:35 | dionet | Assigned To | dionet => c_schmitz |
| 2011-04-16 16:58 | c_schmitz | Note Added: 14827 | |
| 2011-04-16 16:58 | c_schmitz | Note Added: 14828 | |
| 2011-04-16 16:58 | c_schmitz | Assigned To | c_schmitz => dionet |
| 2011-04-17 00:57 | dionet | Status | assigned => resolved |
| 2011-04-17 00:57 | dionet | Resolution | open => fixed |
| 2011-05-04 19:47 | c_schmitz | Status | resolved => closed |
| 2011-05-04 19:47 | c_schmitz | Fixed in Version | => 1.91 |