Hey we have a problem with Flutter UTF8 decode method , it can't decode our String that contains Arabic Characters
here's our code and the String :
**void loadThings() async{
var str ="<p style=\"text-align: right;\"> اÛÙ ÙÛر٠زÙاÙÛ Ú©Ù ÙÙÙÛ Ø±Ø§ استÙاد٠ÙÛÚ©Ùد ب٠ÙÙÙ ÙÛر٠ÙØ§Û Ø¯X´ÙÙ ÙزدÛÚ© Ø´ÙÚ© Ùارد ÙÛÚ©Ùد ک٠دÙÛØ¬Û ÙتاÙسب با Ø§Ú Ù¾Û ÙÙجÙدX´Ø§Ù را Ùارد ÙÛÚ©Ùد.رÙÛ Ø¯Ø´ÙÙاÙÛ Ú©Ù Ø±ÙÛ Ø¢ÙâÙا ÙÙÙÛ Ø§Ø³ØªÙادY کردY باشÛد تاثÛر ÙÛâگذارد</p>";
var ss = utf8.decode(str.codeUnits);
print(ss);
}**
and here is our error :
Syncing files to device Android SDK built for x86... E/flutter
(10047): [ERROR:flutter/shell/common/shell.cc(184)] Dart Error:
Unhandled exception: E/flutter (10047): FormatException: Bad UTF-8
encoding 0xb4 (at offset 135) E/flutter (10047): #0
_Utf8Decoder.convert (dart:convert/utf.dart:568:13) E/flutter (10047): #1 Utf8Decoder.convert (dart:convert/utf.dart:344:13) E/flutter (10047): #2 Utf8Codec.decode (dart:convert/utf.dart:66:60)
E/flutter (10047): #3 RetardedWidget.loadThings
(package:wog/views/test/retarded_widget.dart:13:19)
Related
2021-07-29 18:38:36.528495+0300 Runner[7225:3339676] flutter: selected Languageenglish
2021-07-29 18:38:36.534379+0300 Runner[7225:3339676] [VERBOSE-2:ui_dart_state.cc(199)]
Unhandled Exception: Null check operator used on a null value
#0 _CreateNewAccountState.callRegisterAPI.<anonymous closure>
(package:mealup/screens/auth/create_new_account.dart:543:49)
#1 _rootRunUnary (dart:async/zone.dart:1362:47)
#2 _CustomZone.runUnary (dart:async/zone.dart:1265:19)
#3 _FutureListener.handleError (dart:async/future_impl.dart:172:20)
#4 Future._propagateToListeners.handleError (dart:async/future_impl.dart:719:47)
#5 Future._propagateToListeners (dart:async/future_impl.dart:740:24)
#6 Future._completeError (dart:async/future_impl.dart:550:5)
#7 _completeOnAsyncError (dart:async-patch/async_patch.dart:274:13)
#8 _RestClient.register (package:mealup/network_api/api_client.g.dart)
<asynchronous suspension>
i am trying to run the app on ios device and this is the output i get.
You have an error with null safety.
Unhandled Exception: Null check operator used on a null value
You probably used the ! syntax on a null value. Therefore, your function crashes and no action has been done when you tap on the button.
Checkout the null-safety documentation
I'm moving a Laravel App to another server, and did this:
Copied everything to the new server.
Updated the database.php file.
Changed all occurrences of yield to _yield.
But now I'm stuck with a "Server Error: 500 (Internal Server Error)".
After a long weekend fighting with Laravel, I found where to turn on the logs and display errors. And this is what it shows:
Unhandled Exception
Message:
mcrypt_encrypt(): Key of size 22 not supported by this algorithm. Only keys of sizes 16, 24 or 32 supported Location:
/home3/l7o1c5g8/public_html/laravel/crypter.php on line 40 Stack Trace:
#0 /home3/l7o1c5g8/public_html/laravel/laravel.php(40): Laravel\Error::native(2, 'mcrypt_encrypt(...', '/home3/l7o1c5g8...', 40)
#1 [internal function]: Laravel{closure}(2, 'mcrypt_encrypt(...', '/home3/l7o1c5g8...', 40, Array)
#2 /home3/l7o1c5g8/public_html/laravel/crypter.php(40): mcrypt_encrypt('rijndael-256', 'YourSecretKeyGo...', 'a:3:{s:2:"id";s...', 'cbc', '5E\x9B ]\xBE\x97Yb\x98J\xD7|\xCA\x90...')
#3 /home3/l7o1c5g8/public_html/laravel/session/drivers/cookie.php(40): Laravel\Crypter::encrypt('a:3:{s:2:"id";s...')
#4 /home3/l7o1c5g8/public_html/laravel/session/payload.php(293): Laravel\Session\Drivers\Cookie->save(Array, Array, false)
#5 [internal function]: Laravel\Session\Payload->save()
#6 /home3/l7o1c5g8/public_html/laravel/session.php(150): call_user_func_array(Array, Array)
#7 /home3/l7o1c5g8/public_html/laravel/laravel.php(193): Laravel\Session::__callStatic('save', Array)
#8 /home3/l7o1c5g8/public_html/laravel/laravel.php(193): Laravel\Session::save()
#9 /home3/l7o1c5g8/public_html/public/index.php(34): require('/home3/l7o1c5g8...')
#10 {main}
Any clue? Should I need to regenerate an encryption code? How?
No idea what to do now.
Using Laravel 3 in a shared hosting.
SOLVED: I changed the default key on /public_html/application/config/application.php
from: 'key' => 'YourSecretKeyGoesHere!',
to: 'key' => '32 characters!',
you must replace the default key with a 16,24 or 32 characters word.
Thank you for your help.
Parse error: Invalid numeric literal in C:\xampp\htdocs\aecollegealumni.com\application\config\constants.php on line 43
in constant file i have define('std',021)
and showing above error. i am using xammp server 3.2.2, php 7.1.1 and apache 2.4
can you please help me
Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:\xampp\htdocs\aecollegealumni.com\system\database\drivers\mysql\mysql_driver.php:74 Stack trace: #0 C:\xampp\htdocs\aecollegealumni.com\system\database\DB_driver.php(231): CI_DB_mysql_driver->db_connect() #1 C:\xampp\htdocs\aecollegealumni.com\system\database\DB.php(297): CI_DB_driver->initialize() #2 C:\xampp\htdocs\aecollegealumni.com\application\core\MY_Loader.php(43): DB(Array, NULL) #3 C:\xampp\htdocs\aecollegealumni.com\system\core\Loader.php(2343): MY_Loader->database() #4 C:\xampp\htdocs\aecollegealumni.com\system\core\Loader.php(305): CI_Loader->_ci_autoloader() #5 C:\xampp\htdocs\aecollegealumni.com\application\third_party\MX\Loader.php(123): CI_Loader->initialize() #6 C:\xampp\htdocs\aecollegealumni.com\system\core\Controller.php(103): MX_Loader->initialize() #7 C:\xampp\htdocs\aecollegealumni.com\application\controllers\home.php(6): CI_Controller->__construct() #8 C:\xampp\htdocs\aecollegealumni.com\system\core\CodeIgniter.php(617): H in C:\xampp\htdocs\aecollegealumni.com\system\database\drivers\mysql\mysql_driver.php on line 74
Change
$db['default']['dbdriver'] = 'mysql';
to
$db['default']['dbdriver'] = 'mysqli';
When I run phpunit on the command promp, there exist error like this :
Fatal error: Uncaught Error: Call to undefined method PHPUnit_Util_Configuration::getTestdoxGroupConfiguration() in C:\xampp\htdocs\myshop\vendor\phpunit\phpunit\src\TextUI\TestRunner.php:1076
Stack trace:
#0 C:\xampp\htdocs\myshop\vendor\phpunit\phpunit\src\TextUI\TestRunner.php(167): PHPUnit_TextUI_TestRunner->handleConfiguration(Array)
#1 C:\xampp\php\pear\PHPUnit\TextUI\Command.php(176): PHPUnit_TextUI_TestRunner->doRun(Object(PHPUnit_Framework_TestSuite), Array)
#2 C:\xampp\php\pear\PHPUnit\TextUI\Command.php(129): PHPUnit_TextUI_Command->run(Array, true)
#3 C:\xampp\php\phpunit(46): PHPUnit_TextUI_Command::main()
#4 {main}
thrown in C:\xampp\htdocs\myshop\vendor\phpunit\phpunit\src\TextUI\TestRunner.php on line 1076
PHP Fatal error: Uncaught Error: Call to undefined method PHPUnit_Util_Configuration::getTestdoxGroupConfiguration() in C:\xampp\htdocs\myshop\vendor\phpunit\phpunit\src\TextUI\TestRunner.php:1076
Stack trace:
#0 C:\xampp\htdocs\myshop\vendor\phpunit\phpunit\src\TextUI\TestRunner.php(167): PHPUnit_TextUI_TestRunner->handleConfiguration(Array)
#1 C:\xampp\php\pear\PHPUnit\TextUI\Command.php(176): PHPUnit_TextUI_TestRunner->doRun(Object(PHPUnit_Framework_TestSuite), Array)
#2 C:\xampp\php\pear\PHPUnit\TextUI\Command.php(129): PHPUnit_TextUI_Command->run(Array, true)
#3 C:\xampp\php\phpunit(46): PHPUnit_TextUI_Command::main()
#4 {main}
thrown in C:\xampp\htdocs\myshop\vendor\phpunit\phpunit\src\TextUI\TestRunner.php on line 1076
I want to test event to send email is working or not
How can I solve it?
I am trying to run our game application on ubuntu 16.0.4 and it throws the following error:
libGL error: driver pointer missing
libGL error: failed to load driver: nouveau
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 155 (GLX)
Minor opcode of failed request: 3 (X_GLXCreateContext)
Value in failed request: 0x0
Serial number of failed request: 42
Current serial number in output stream: 44
I ran the backtrace on my application and got the following:
Thread 34 (Thread 0xa11f9b40 (LWP 20075)):
#0 0x010d2e74 in g2s::engine::G2SMtp::~G2SMtp (this=0x2383c94 <g2sEngine+4660>, __in_chrg=<optimized out>)
at g2sengine/g2smtp.cpp:42
#1 0x00f997b8 in g2s::engine::G2SEngine::~G2SEngine (this=0x2382a60 <g2sEngine>, __in_chrg=<optimized out>)
at ../../include/../src/g2senginelib/g2sengine/g2sengine.h:75
#2 0xb64e0973 in __run_exit_handlers (status=1, listp=0xb66643dc <__exit_funcs>, run_list_atexit=true) at exit.c:82
#3 0xb64e09cf in __GI_exit (status=1) at exit.c:104
#4 0xb6b72109 in _XDefaultError () from /usr/lib/i386-linux-gnu/libX11.so.6
#5 0xb6b7223a in _XError () from /usr/lib/i386-linux-gnu/libX11.so.6
#6 0xb6b6f1db in ?? () from /usr/lib/i386-linux-gnu/libX11.so.6
#7 0xb6b6f29f in ?? () from /usr/lib/i386-linux-gnu/libX11.so.6
#8 0xb6b7017e in _XReply () from /usr/lib/i386-linux-gnu/libX11.so.6
#9 0xb6b5a755 in XInternAtom () from /usr/lib/i386-linux-gnu/libX11.so.6
#10 0x005f310d in start_x11_screen (nscreen=0, Xres=1280, Yres=1024, client_visual_attributes=0x0) at glxctx.c:4596
I would like to know how to read the X11 errors, is there a reference manual which can give me details corresponding to numbers 155 (GLX) , 3 (X_GLXCreateContext) and 42 , 44. How to read these errors ?
Also,any idea what could be wrong here ?