diff website/src/manual.html.luan @ 1257:e38f5869e9df

don't reset in send_redirect and other improvements
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 20 Sep 2018 21:04:41 -0600
parents 5dbb552075ff
children 95f6540b27f9
line wrap: on
line diff
--- a/website/src/manual.html.luan	Wed Sep 19 20:15:16 2018 -0600
+++ b/website/src/manual.html.luan	Thu Sep 20 21:04:41 2018 -0600
@@ -2624,9 +2624,9 @@
 following the same rules of function <a href="#String.sub"><code>String.sub</code></a>.
 
 
-<h4 heading><a name="Binary.to_string" href="#Binary.to_string"><code>Binary.to_string (b)</code></a></h4>
-<p>
-Converts the binary <code>b</code> to a string using the Java <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html#String(byte[])">String constructor</a>.
+<h4 heading><a name="Binary.to_string" href="#Binary.to_string"><code>Binary.to_string (b [,charset])</code></a></h4>
+<p>
+If <code>charset</code> is not nil then converts the binary <code>b</code> to a string using the Java <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html#String(byte[],%20java.lang.String)">String constructor</a>, else makes each byte a char.