aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-08-30 06:39:28 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-09-02 02:13:26 +0800
commitcbd729957b60599f55dfd1f3c7b64a7e4540c6ce (patch)
treece3fc7e1559683b3ef2aa89d4ccd7208e450cdfa /docs
parentf3230a41cebe4778c5c831e2bfa4fb3b7e10f4cb (diff)
downloaddexon-solidity-cbd729957b60599f55dfd1f3c7b64a7e4540c6ce.tar
dexon-solidity-cbd729957b60599f55dfd1f3c7b64a7e4540c6ce.tar.gz
dexon-solidity-cbd729957b60599f55dfd1f3c7b64a7e4540c6ce.tar.bz2
dexon-solidity-cbd729957b60599f55dfd1f3c7b64a7e4540c6ce.tar.lz
dexon-solidity-cbd729957b60599f55dfd1f3c7b64a7e4540c6ce.tar.xz
dexon-solidity-cbd729957b60599f55dfd1f3c7b64a7e4540c6ce.tar.zst
dexon-solidity-cbd729957b60599f55dfd1f3c7b64a7e4540c6ce.zip
Document character set
Diffstat (limited to 'docs')
-rw-r--r--docs/frequently-asked-questions.rst7
-rw-r--r--docs/introduction-to-smart-contracts.rst4
2 files changed, 4 insertions, 7 deletions
diff --git a/docs/frequently-asked-questions.rst b/docs/frequently-asked-questions.rst
index e4eee32b..c4de60cd 100644
--- a/docs/frequently-asked-questions.rst
+++ b/docs/frequently-asked-questions.rst
@@ -212,13 +212,6 @@ Better use ``for (uint i = 0; i < a.length...``
See `struct_and_for_loop_tester.sol <https://github.com/fivedogit/solidity-baby-steps/blob/master/contracts/65_struct_and_for_loop_tester.sol>`_.
-What character set does Solidity use?
-=====================================
-
-Solidity is character set agnostic concerning strings in the source code, although
-UTF-8 is recommended. Identifiers (variables, functions, ...) can only use
-ASCII.
-
What are some examples of basic string manipulation (``substring``, ``indexOf``, ``charAt``, etc)?
==================================================================================================
diff --git a/docs/introduction-to-smart-contracts.rst b/docs/introduction-to-smart-contracts.rst
index 1a3cf638..33a8ad10 100644
--- a/docs/introduction-to-smart-contracts.rst
+++ b/docs/introduction-to-smart-contracts.rst
@@ -57,6 +57,10 @@ and overwrite your number, but the number will still be stored in the history
of the blockchain. Later, we will see how you can impose access restrictions
so that only you can alter the number.
+.. note::
+ All identifiers (contract names, function names and variable names) are restricted to
+ the ASCII character set. It is possible to store UTF-8 encoded data in string variables.
+
.. index:: ! subcurrency
Subcurrency Example