Search for existing answers to your product and support questions.
Familiarize yourself with our support site and learn best practices in working with our team.
Manage Service Requests, View and update service requests submitted by you and others in your organization.
Submit a new issue to our technical support team.
Oracle B2C Service insights from our Technical Support team subject matter experts
Browse resources to assist you in launching your implementation and ensure a successful go-live.
Access your OCI account.
Find product documentation for supported versions of B2C and documentation libraries for related service solutions.
You will have the tools to improve your customers' experience when you learn about all the things our products can do.
Find links for API documentation, Custom Processes, Customer Portal, and Agent Browser UI Extensibility Framework.
Explore how accelerators are designed to demonstrate how an integration scenario could be built using the public integration and extension capabilities of the Oracle B2C Service.
Prepare for a successful transition by reviewing upcoming release changes and enhancements.
Explore webinars, events, and feature kits to learn about B2C Service features, functionality, and best practices from the technical experts.
Oracle MyLearn offers a portfolio of free and paid subscription-based learning resources to help you gain valuable skills, accelerate cloud adoption, increase productivity, and transform your business.
Empower your team with the skills to implement, configure, manage, and use your applications with Customer Experience Cloud Training.
Our goal is to facilitate a friendly, supportive environment where members can easily collaborate with each other on solutions and best practices.
Ask and answer questions specific to B2C.
This is an exciting resource intended to help with your Oracle Service Cloud Analytics.
Share product improvement ideas and enhancement requests with Oracle Development, while collaborating with other Oracle customers and partners.
Update your phone number, email notification preferences, and severity 1 and severity 2 contact preferences.
View the contact managers within your organization.
Find contact information of the Technical Account Manager (TAM) and Client Success Manager (CSM) for your organization.
How can I use the multibyte string functionality in PHP?
Environment:
Oracle B2C Service, all supported versions
Resolution:
Using PHP string functions like strlen() or substr() may not return the expected result if the string you are working with contains multibyte characters (single characters that take up more than 1 byte of memory). There exists a multibyte extension in PHP specifically created to address this problem through the multibyte counterpart functions like mb_substr() or mb_strlen(). However, the PHP version 5.6 installation included in Oracle B2C Service does not have the multibyte module (mbstring) installed, and it cannot be installed. As of version 25A, however, the mbstring module is enabled when using PHP 8.3.
This means that, when using PHP 5.6 and product versions lower than 25A, functions like mb_substr or mb_strlen are not available. Fortunately, there are slight tweaks that can be done to the non-multibyte functions, used in conjunction with other functions, that let you achieve the same result. Below are two examples of alternatives to the mb_strlen() function (get the length of a multibyte string) and mb_substr (get a substring of a multibyte string).
function my_mb_strlen($input){ $output=0; if(function_exists('mb_strlen')) { $output=mb_strlen($input, mb_detect_encoding($input)); } else { if (preg_match('!!u', $input)) { $output=strlen( utf8_decode($input)); } else { $output=strlen($input); } } return $output;}
function my_mb_substr($string, $offset, $length){ $arr = preg_split("//u", $string); $slice = array_slice($arr, $offset + 1, $length); return implode("", $slice);}