<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[encoding problem of output at DiscoveryTest]]></title><description><![CDATA[<p dir="auto">I  modified DiscoveryTest.java a little.<br />
That is, instead of System.out.println(pvs); of main() function, I substitued it with<br />
"for (ObjectIdentifier objectIdentifier : oids) {<br />
System.out.println(pvs.getString(objectIdentifier, PropertyIdentifier.description));<br />
}".</p>
<p dir="auto">Of course, I added "refs.add(oid, PropertyIdentifier.description);" at addPropertyReferences() function of the DiscoveryTest.java.<br />
But, the ouput encoding is not right at System.out, so breaked font strings are printed which is originally east asia character.<br />
So I want to know how to change encoding settings of PropertyValues or RequestUtils.readProperties().<br />
Any suggestions are appreciated.</p>
]]></description><link>https://forum.mango-os.com/topic/3693/encoding-problem-of-output-at-discoverytest</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 22:40:22 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/3693.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 06 Aug 2018 04:13:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to encoding problem of output at DiscoveryTest on Thu, 09 Aug 2018 00:54:18 GMT]]></title><description><![CDATA[<p dir="auto">Thank you.<br />
But the content of the link says it relates  java option matter, it seems doubtful a little for me  about it.<br />
I'll try it anyway.</p>
]]></description><link>https://forum.mango-os.com/post/19473</link><guid isPermaLink="true">https://forum.mango-os.com/post/19473</guid><dc:creator><![CDATA[mirvana]]></dc:creator><pubDate>Thu, 09 Aug 2018 00:54:18 GMT</pubDate></item><item><title><![CDATA[Reply to encoding problem of output at DiscoveryTest on Tue, 07 Aug 2018 16:45:49 GMT]]></title><description><![CDATA[<p dir="auto">I suspect you're right that it's the output stream. I googled for that and found this stack overflow thread, if it's helpful: <a href="https://stackoverflow.com/questions/14030811/system-out-character-encoding" rel="nofollow ugc">https://stackoverflow.com/questions/14030811/system-out-character-encoding</a></p>
]]></description><link>https://forum.mango-os.com/post/19459</link><guid isPermaLink="true">https://forum.mango-os.com/post/19459</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Tue, 07 Aug 2018 16:45:49 GMT</pubDate></item><item><title><![CDATA[Reply to encoding problem of output at DiscoveryTest on Tue, 07 Aug 2018 06:24:05 GMT]]></title><description><![CDATA[<p dir="auto">I'm afraid that the way using CharacterString would be not likely working because I already had used the way of String.getBytes() which is not working and  CharacterString.encode() use the way even though I use the function through CharacterString.writeImpl().<br />
I think maybe I  have to use the matter about socket, because Bacnet4J use socket network.<br />
Any helps are appreciated.</p>
]]></description><link>https://forum.mango-os.com/post/19451</link><guid isPermaLink="true">https://forum.mango-os.com/post/19451</guid><dc:creator><![CDATA[mirvana]]></dc:creator><pubDate>Tue, 07 Aug 2018 06:24:05 GMT</pubDate></item><item><title><![CDATA[Reply to encoding problem of output at DiscoveryTest on Tue, 07 Aug 2018 04:41:17 GMT]]></title><description><![CDATA[<p dir="auto">Thank you for your answering.<br />
By the way, the return result of PropertyValues.getString() is String, not  CharacterString.<br />
And, PropertyValues.getString() use Encodable, internally.<br />
But I got the hint that is changing the return string to CharacterString which has  encoding setting, from your help.<br />
I' ll do it first and reply again.</p>
]]></description><link>https://forum.mango-os.com/post/19448</link><guid isPermaLink="true">https://forum.mango-os.com/post/19448</guid><dc:creator><![CDATA[mirvana]]></dc:creator><pubDate>Tue, 07 Aug 2018 04:41:17 GMT</pubDate></item><item><title><![CDATA[Reply to encoding problem of output at DiscoveryTest on Mon, 06 Aug 2018 14:48:16 GMT]]></title><description><![CDATA[<p dir="auto">Hi mirvana,</p>
<p dir="auto">I am not 100% certain, but I would guess the data type of these properties is a CharacterString? If so it looks like the encoding should be in the received ByteQueue. So, I wonder if there's a setting on the other device?</p>
<p dir="auto">It doesn't look like there's any way to set a character encoding setting more globally, but maybe I'm missing something. It looks like it prefers ASCII when it is doing something like setting the properties for rendering a BinaryValue, but that other encodings should be supported for reading.</p>
]]></description><link>https://forum.mango-os.com/post/19429</link><guid isPermaLink="true">https://forum.mango-os.com/post/19429</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Mon, 06 Aug 2018 14:48:16 GMT</pubDate></item></channel></rss>