diff --git a/configure b/configure
index fa4fe172d74cdc12a2ab2c0d627fd91fe281876c..4749f104f5979247c38d138928a637a4e277d196 100755
--- a/configure
+++ b/configure
@@ -2846,7 +2846,7 @@ hasstodstringview="undef"
 message "Checking for string_view implementation"
 if test "x$usecxx11" = "xdefine" ; then
     check_code '#include <string_view>
-int main() { char arr[3] = {'B', 'a', 'r'}; std::string_view strv(arr, sizeof(arr)); return 0;}" }' '$(CXX11FLAGS)'
+int main() { char arr[3] = {0x41, 0x61, 0x72}; std::string_view strv(arr, sizeof(arr)); return 0;}' '$(CXX11FLAGS)'
     if test $include_result -eq 1 ; then
         hasstdstringview="define"
         result '<string_view>'
@@ -2857,7 +2857,7 @@ int main() { size_t pos; std::string_view str; std::stod(str,&pos); return 0;}'
         fi
     else
         check_code '#include <experimental/string_view>
-int main() { char arr[3] = {'B', 'a', 'r'}; std::experimental::string_view strv(arr, sizeof(arr)); return 0;}"' '$(CXX11FLAGS)'
+int main() { char arr[3] = {0x41, 0x61, 0x72}; std::experimental::string_view strv(arr, sizeof(arr)); return 0;}' '$(CXX11FLAGS)'
         if test $include_result -eq 1 ; then
             hasstdexpstringview="define"
             result '<experimental/string_view>'