我的ggVis
输出字符乱码
我想我的系统的编码设置(Windows 7 -windows ISO8859-1(我住在西欧)和GVIS页面的编码(utf-8,Firefox或Chrome)之间存在不匹配。
我尝试更改R-Studio(系统 - > utf8)的语言首选项,但没有成功。 有没有人有任何想法?
R version 3.2.2 (2015-08-14)
Platform: i386-w64-mingw32/i386 (32-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1
locale:
[1] LC_COLLATE=French_France.1252 LC_CTYPE=French_France.1252
答案 0 :(得分:0)
您需要设置系统区域设置。对于Windows,这需要这样做:
<h:form id="form1">
<p:dataTable id="table1" var="table1" value="#{myHandler.datarows}" editable="true"
rowIndexVar="rowIndex"
filteredValue="#{myHandler.filteredDatarows}"
style="margin: auto; width: 100%; border: 1; cellpadding: 3;"
paginator="true" paginatorAlwaysVisible="true" paginatorPosition="bottom"
rows="12"
paginatorTemplate="{CurrentPageReport} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
currentPageReportTemplate="›› {startRecord} - {endRecord} of {totalRecords} Rules">
<p:ajax event="rowEdit" listener="#{myHandler.onEdit}" update=":form1:table1"/>
<p:ajax event="rowEditCancel" listener="#{myHandler.onCancel}" update=":form1:table1"/>
<p:column headerText="Column1" style="width:10%" sortBy="#{datarow.column1}">
<p:cellEditor>
<f:facet name="output">
<h:outputText value="#{datarow.column1}"/>
</f:facet>
<f:facet name="input">
<p:inputText id="column1InputText" value="#{datarow.column1}" style="width:100%"/>
</f:facet>
</p:cellEditor>
</p:column>
.....
<p:column style="width:6%">
<p:rowEditor/>
</p:column>
</p:dataTable>