WO2020088464A1 - Rcs public message processing method, mobile terminal, and readable storage medium - Google Patents

Rcs public message processing method, mobile terminal, and readable storage medium Download PDF

Info

Publication number
WO2020088464A1
WO2020088464A1 PCT/CN2019/114062 CN2019114062W WO2020088464A1 WO 2020088464 A1 WO2020088464 A1 WO 2020088464A1 CN 2019114062 W CN2019114062 W CN 2019114062W WO 2020088464 A1 WO2020088464 A1 WO 2020088464A1
Authority
WO
WIPO (PCT)
Prior art keywords
client
language
character set
target
instruction
Prior art date
Application number
PCT/CN2019/114062
Other languages
French (fr)
Chinese (zh)
Inventor
邓停东
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2020088464A1 publication Critical patent/WO2020088464A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/56Unified messaging, e.g. interactions between e-mail, instant messaging or converged IP messaging [CPM]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/40Processing or translation of natural language
    • G06F40/58Use of machine translation, e.g. for multi-lingual retrieval, for server-side translation for client devices or for real-time translation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/06Message adaptation to terminal or network requirements
    • H04L51/066Format adaptation, e.g. format conversion or compression
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/58Message adaptation for wireless communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/18Information format or content conversion, e.g. adaptation by the network of the transmitted or received information for the purpose of wireless delivery to users or terminals

Definitions

  • the present disclosure relates to the field of converged communication technologies, and in particular, to an RCS public message processing method, a mobile terminal, and a readable storage medium.
  • the server will adopt the method of public messaging to unify The message is sent to each user, such as the public message in the WeChat public account, and the server will send a push content to each user concerned.
  • the server uses a unified fixed language and character set to send messages to the RCS application client, and the users of the RCS application client may be from different regions and use different languages and character sets; the server uses RCS public messages are delivered in a unified fixed language and character set, so that the messages cannot be displayed normally when they reach the RCS application client.
  • the RCS application client displays a language that the user does not understand, or the RCS application client does not support the language and characters Sets, etc., cause some users to appear incomprehensible.
  • the main purpose of the present disclosure is to provide a method for processing RCS public messages, which aims to solve the problem of sending RCS public messages using a unified and fixed language and character set, resulting in some RCS application clients not applying the unified and fixed language and character set. Users cannot identify technical issues with public messages.
  • An embodiment of the present disclosure proposes a method for processing RCS public messages, including: acquiring each registered language and registered character set currently used by each client; according to each registered language and registered character set, converting the RCS public messages to be sent into Each compatible public message adapted to each client; each compatible public message is sent to each adapted client separately.
  • the present disclosure also provides a mobile terminal, the mobile terminal includes: a memory, a processor, and an RCS public message processing program stored on the memory and executable on the processor, so The steps of the RCS public message processing method described above when the RCS public message processing program is executed by the processor.
  • the present disclosure also provides a computer-readable storage medium on which an RCS public message processing program is stored, and the RCS public message processing program is implemented as described above when executed by a processor The steps of the RCS public message processing method described above.
  • FIG. 1 is a schematic diagram of a terminal structure of a hardware operating environment involved in an embodiment of the present disclosure
  • FIG. 2 is a schematic flowchart of a first embodiment of a public message processing method of RCS disclosed
  • FIG. 3 is a schematic flowchart of a second embodiment of a public message processing method of RCS in the present disclosure
  • FIG. 4 is a schematic diagram of a negotiation process of a second embodiment of a public message processing method of RCS disclosed;
  • FIG. 5 is a schematic diagram of a negotiation process of the third embodiment of the public RCS public message processing method of the present disclosure
  • FIG. 6 is a schematic diagram of another negotiation process of the third embodiment of the disclosed RCS public message processing method.
  • the main solutions of the embodiments of the present disclosure are: negotiate and confirm with each client, update the registered language and registered character set of each client; obtain each registered language and registered character set currently used by each client; according to each registered language And register the character set, convert the RCS public messages to be sent into compatible public messages that are adapted to each client, and send each compatible public message to each adapted client.
  • the unified and fixed language and character set are used when sending RCS public messages. Because the RCS application client does not support the language and character set, or the user does not understand the language, the message reaches the RCS application client. Cannot be displayed normally, and users cannot read RCS public messages normally.
  • the present disclosure provides a solution so that when sending RCS public messages, different clients receive the same public content, which can be obtained and displayed by adapting the client's language and character set, respectively, so that users can read the RCS public normally News.
  • FIG. 1 is a schematic diagram of a terminal structure of a hardware operating environment involved in a solution of an embodiment of the present disclosure.
  • the terminal may be a PC, a smart phone, a tablet computer, an e-book reader, an MP3 (Moving Pictures Expert Group, Audio Layer 3, motion picture expert compression standard audio level 3) player, and an MP4 (Moving Pictures Experts) Group Audio Layer IV, compression standard audio level for motion picture experts 3) Players, digital broadcast receivers, wearable devices (such as smart bracelets, smart watches, etc.), navigation devices, portable computers and other portable terminal devices, or not Mobile terminal equipment.
  • MP3 Motion Pictures Expert Group
  • Audio Layer 3 motion picture expert compression standard audio level 3
  • MP4 Motion Picture Experts Group Audio Layer IV, compression standard audio level for motion picture experts
  • the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002.
  • the communication bus 1002 is used to implement connection communication between these components.
  • the user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and in an embodiment, the user interface 1003 may further include a standard wired interface and a wireless interface.
  • the network interface 1004 may include a standard wired interface and a wireless interface (such as a WI-FI interface).
  • the memory 1005 may be a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as a disk memory. In an embodiment, the memory 1005 may also be a storage device independent of the foregoing processor 1001.
  • a service terminal is used as an execution subject for description.
  • the service terminal in the method embodiment is the terminal of the embodiment of the present disclosure.
  • terminal structure shown in FIG. 1 does not constitute a limitation on the terminal, and may include more or fewer components than those illustrated, or combine certain components, or arrange different components.
  • the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and an RCS public message processing program.
  • the network interface 1004 is mainly used to connect to the background server and perform data communication with the background server;
  • the user interface 1003 is mainly used to connect to the client (user side) and perform data communication with the client; and the processor 1001 can be used to call the RCS public message processing program stored in the memory 1005 and perform the following operations: obtain each registered language and registered character set currently used by each client; according to each registered language and registered character set, the RCS to be sent
  • the public messages are converted into compatible public messages adapted to each client; and each compatible public message is sent to each adapted client.
  • the RCS public message processing method includes: when receiving a first optional instruction sent by the client; according to the first optional instruction, determining the target client that sends the first optional instruction The target language and the target character set; update the registered language and the registered character set of the target client according to the target language and the target character set.
  • the step of determining the target language and the target character set selected by the target client that sends the first optional instruction according to the first optional instruction includes: according to the first optional instruction, obtaining The first confirmation instruction sent by the target client; according to the first confirmation instruction, send a second confirmation instruction to the target client; according to the first selection instruction and the second confirmation instruction, determine the target client The selected target language and target character set.
  • the step of determining the target language and target character set selected by the target client sending the first optional instruction according to the first optional instruction includes: according to the first optional instruction, sending support List of languages and character sets to the target client; obtain a second optional instruction fed back by the target client based on the list of languages and character sets; according to the second optional instruction, return a first successful instruction; The target client feedbacks the second successful command based on the first successful command; and according to the second optional command and the second successful command, determines the target language and target character set selected by the target client.
  • the step of determining the target language and target character set selected by the client that sends the first optional instruction according to the first optional instruction includes: according to the first optional instruction, sending the supported language List the language and character set to the target client; obtain a first failure instruction fed back by the target client based on the language and character set list; and issue a second failure instruction to the target according to the first failure instruction Target client; determine the target language and target character set selected by the target client.
  • the first optional instruction includes: acquiring an instruction for the client to set language feedback for the first time as the first optional instruction; or acquiring an instruction for the client to change the language feedback as the first optional instruction.
  • the RCS public message processing method includes: sending an acquisition instruction of language and character set selection to the client; if within a preset time period, the client does not receive feedback based on the acquisition instruction, Then obtain the client ID of the client; update the registered language and registered character set of the client according to the client ID and the default language and default character set.
  • the step of converting the RCS public message to be sent into each compatible public message adapted to each client according to each registered language and registered character set includes: according to each registered language and registered character set , Convert the format of the RCS public message to form the format of each registered language and registered character set; according to the format of each registered language and registered character set, each compatible public message adapted to each client is obtained.
  • the RCS public message processing method includes:
  • Step S10 Obtain each registered language and registered character set currently used by each client;
  • the execution subject of the method in this embodiment may be a service terminal, and the service terminal may be carried in a network server.
  • the embodiments of the present disclosure relate to a service terminal and a client for description, where the service terminal is used to deliver RCS public messages to the client, and the client is used to receive RCS public messages delivered by the service terminal.
  • the service terminal of the embodiment of the present disclosure may be a mobile phone, computer, notebook computer, wearable device, etc .; the client may also be a mobile phone, computer, notebook computer, wearable device.
  • the RCS public message refers to the message that the service terminal sends to each client in a unified manner, for example, the tweet of the WeChat public account.
  • the registered character set refers to the encoding method used by the service terminal when sending RCS public messages, such as CP936 encoding, GB2312 encoding, Unicode encoding, etc.
  • This encoding method is supported by the local environment of the client to ensure that the client can receive To RCS public news.
  • the registration language refers to the language displayed by the client when the client receives the RCS public message, for example, English, French, New Zealand, etc.
  • the registration language is the language supported by the client's local environment.
  • the registration language and character set currently used by the client are the way in which the service terminal negotiates with the client and receives the application for the client to select the language and character set, and then the service terminal and the client confirm multiple times; or the service terminal Send instructions to the client to allow the client to choose the language and logon character set required to receive RCS public messages, and then the service terminal and the client confirm multiple times.
  • this method embodiment uses a method of communication, negotiation and confirmation between the service terminal and the client to determine the language and character set that the client needs to select as the current client The registered language and registered character set used.
  • the service terminal only needs to obtain the client's current The registered language and registered character set used.
  • step S20 according to each registered language and registered character set, the RCS public message to be sent is converted into each compatible public message adapted to each client; wherein, the compatible public message refers to the language and characters used in the delivery RCS public messages that are all adapted to the client's local environment.
  • the service terminal After the service terminal obtains each registered language and registered character set currently used by each client, according to each registered language and registered character set of each client, the service terminal converts the RCS public message to be sent to each client into each compatible public message , And then send each compatible public message to the adapted clients.
  • Step S30 Send each compatible public message to each adapted client.
  • the service terminal converts the RCS public messages to be sent to each client into various compatible public messages, and then sends each compatible public message to the adapted clients.
  • the client of the RCS application is carried on a mobile phone
  • the languages supported by the mobile phone system environment include Chinese, English, Japanese, and Korean
  • the character sets supported by the mobile phone system environment include CP936 encoding and GB2312 encoding .
  • the user chooses the local language of the mobile phone system or the client to be Chinese.
  • the server and the client negotiate and confirm, the language and character set used to send the RCS public message are Chinese and GB2312 code, then the client currently uses the registered language And the registered character set are Chinese, GB2312 encoding.
  • the service terminal will convert the RCS public message to be sent into Chinese and GB2312 encoded formats of language and character set to form a compatible public message, and then the service terminal will send the compatible public message to the client on the mobile phone, and the client can use The Chinese language selected by the user is displayed.
  • the service terminal obtains each registered language and registered character set currently used by each client, and then the service terminal converts the RCS public message to be sent to each client according to each registered language and registered character set Adapt the compatible public messages and deliver the compatible public messages to the adapted clients separately; so that when the service terminal sends RCS public messages to the client, the language and character set used can adapt to the client's local environment. And the service terminal uses the selected language and selected character set confirmed after consultation with the client as the current registered language and registered character set of the client; so that the user displays when the client using the RCS application receives the RCS public message The language is closer to the user's needs and meets the user's needs.
  • step S20 includes:
  • step S21 according to each registered language and registered character set, the RCS public message is formatted to form the format of each registered language and registered character set;
  • the service terminal converts the unified fixed language and character set of the RCS public message into the registered language and registered character set currently used by each client according to each registered language and registered character set.
  • the format of the registered language and registered character set refers to the conversion of the unified fixed language and character set of the RCS public message into a language and character set that is adapted to the local environment of the client, and the converted language and character set is the client
  • the registered language and registered character set currently used, the converted RCS public message is the format of the registered language and registered character set.
  • step S22 according to the format of each registered language and registered character set, each compatible public message adapted to each client is obtained.
  • the service terminal converts the unified fixed language and character set of the RCS public message into the format of each registered language and registered character set currently used by each client; the unified fixed language and character set of the RCS public message is converted into the current use of each client After each registered language and the format of the registered character set, each compatible message is formed.
  • the service terminal converts the unified fixed language and character set of the RCS public message into a language and character set that is adapted to the local environment of the client, where the converted language and character set are currently used by the client Register the language and register the character set to form each compatible message that adapts to each client; when the user uses the RCS application client and receives the service terminal to send the RCS public message, the user can respond to different client user needs and client local environment.
  • Compatible messages in different languages and character set formats avoiding the use of a unified and fixed language and character set to deliver RCS public messages.
  • Some clients receive RCS public messages that are not suitable, garbled or unable to display, or display Languages that client users cannot understand; meet the needs of different clients using different languages and character sets, or the same client using different languages and character sets, enabling users to accurately identify RCS public messages.
  • the RCS public message processing method further includes:
  • Step S40 when the first selection instruction sent by the client is received
  • the client is carried on a mobile phone as an example.
  • the client can also be carried on other devices, such as a notebook computer, a smart bracelet, and so on.
  • the client user installs the RCS application on the mobile phone
  • the language of the mobile phone system itself or the language of the client may be set; when the user sets the language of the mobile phone system itself or the language of the client, the client goes online
  • a first selection instruction will be sent to the service terminal, telling the terminal server that the client wants to select the language and character set.
  • the first selection instruction refers to that when the client user of the RCS application sets or changes the client's local language or client language, the client sends an instruction to the service terminal to tell the service terminal the language and character that the client wants to select Set, the command sent by the client at this time is the first optional command.
  • the language and character set that the client wants to choose can be one language, one character set, multiple languages, multiple character sets, or one language, multiple character sets, Multiple languages and multiple character sets.
  • Step S50 According to the first selection instruction, determine the target language and target character set selected by the target client sending the first selection instruction;
  • the service terminal determines the language and character set that the target client wants to select according to the first selection instruction, and further negotiates with the target client to determine the language and character set selected by the final client according to the language and character set supported by the service terminal, and Use the language and character set selected by the target client as the target language and target character set.
  • the target client refers to a client that sends the first selection instruction and tells the service terminal the language and character set it wants to select.
  • Target language and target character set means that after the target client sends the first selection instruction to the service terminal, the service terminal confirms whether the service terminal supports the language and character set that the client wants to select; if so, the service terminal follows the target The client further confirms and selects the language and character set that the target client wants to use, as the service terminal sends the RCS public message to the language and character set of the target client, and the target client sends the first option command to select the language and character
  • the character set is the target language and target character set; if not, the service terminal further negotiates with the target client and confirms the selection of languages and character sets supported by other service terminals, as the service terminal sends RCS public messages to the target client's language and
  • the character set, the language and character set confirmed by further negotiation, is the target language and target character set.
  • Step S60 Update the registered language and registered character set of the target client according to the target language and target character set.
  • the target client After the target client sets or changes the selected language and character set, the target client sends the first optional instruction to inform the service terminal, and after consultation and confirmation with the service terminal, the target language and target character set are obtained.
  • the service terminal uses the target language and the target character set to assign values to the target client's registered language and registered character value, so as to update the target client's registered language and registered character set.
  • update means that the target client sets the language and character set for the first time, and after notifying the service terminal, the service terminal should also record the target client's registered language and registered character set accordingly; or the client changes the service terminal After registering the language and character set registered in the server, and notifying the service terminal, the service terminal should also modify the registration language and character set of the target client accordingly.
  • the target client will send a first option instruction to negotiate with the service terminal; when the service terminal receives the first option sent by the target client Instruction to determine the target language and target character set selected by the target client; the service terminal uses the target language and target character set selected by the target client to update the registered language and registered character set of the target client; after negotiation Registered language and registered character set, and issued RCS public messages, so that the registered language and registered character set of the service terminal meet the language requirements of the target client user and the local environment supporting the client, avoiding the registration language and registered character set Meet the language requirements of the target client user, or the local environment that does not support the client.
  • the first optional instruction includes: obtaining an instruction for the client to set language feedback for the first time as the first optional instruction; or obtaining an instruction for the client to change the language feedback as the first optional instruction.
  • the client After the client user sets the language of the mobile phone system itself or the client language, the client reads the language setting of the client or the language setting of the mobile phone system itself, and sends feedback to the service terminal when the client goes online; the service terminal obtains the client for the first time Read the command for setting language feedback as the first optional command.
  • the client After the client user changes the language of the mobile phone system itself or the client language, the client reads the language change of the client or the language of the mobile phone system itself, and when the client goes online, it sends feedback to the service terminal; the service terminal obtains the client to read Take the instruction to change the language feedback.
  • the instruction to set language feedback for the first time means that after the user first installs the client of the RCS application on the mobile phone, the user sets the language of the client, or the user does not set the language of the client, but the language of the mobile phone system exists ;
  • the client reads the language setting of the client or the language setting of the mobile phone system itself, and sends instructions to the service terminal after the client goes online.
  • the instruction to change the language feedback means that the user has changed the language of the client, or the user has not set the language of the client, but has changed the language of the mobile phone system; the client reads the language change of the client or the mobile phone system itself After the language changes, and the client goes online, it sends instructions to the service terminal.
  • the language set or changed by the client is read first, that is, the language setting or change priority of the client is greater than the mobile phone system itself Language setting or change.
  • the client of the mobile terminal installs the RCS application for the first time, the client reads the language setting of the mobile phone system itself; then the client uses the language set by the mobile phone system itself and the character set supported by the mobile phone when the client goes online , Negotiate with the service terminal to determine the negotiated language and character set.
  • the service terminal uses the negotiated language and character set to deliver RCS public messages to the client.
  • the client reads the language setting of the mobile phone system after the change; then the mobile phone system itself is used when the client goes online
  • the set language and the character set supported by the mobile phone itself are negotiated with the service terminal to determine the negotiated language and character set.
  • the service terminal uses the negotiated language and character set to deliver RCS public messages to the client. If after installing the client of the RCS application, the user changes the language in the client's language setting, then the client reads the changed client's language setting; then the client uses the language set by the client and the supported character set when going online. Negotiate with the service terminal to determine the negotiated language and character set. The service terminal uses the negotiated language and character set to deliver RCS public messages to the client.
  • the instruction for setting the language feedback by the client for the first time may be used as the first optional instruction, and the instruction for changing the language feedback by the client may also be used as the first optional instruction; It can record once, and if the client user changes the language, the service terminal registration language and registration character set cannot be modified, which can not meet the different needs of the same client user; so that the client user can set the change language multiple times and receive different The RCS public message in language meets more display requirements of client users.
  • step S50 includes:
  • Step A1 Acquire the first confirmation instruction sent by the target client according to the first selection instruction
  • the target client sends a first selection instruction to the service terminal, telling the terminal server which language and character set it wants to select; in the second step, the service terminal confirms and wants from the target client The selected language and character set, select the language and character set supported by the service terminal, and inform the target client of the language and character set selected by the service terminal through instructions; the third step, the target client knows the target after receiving the service terminal instruction The language and character set that the client wants to select is the language and character set supported by the service terminal, and after confirmation, sends a first confirmation instruction to the service terminal.
  • the first confirmation instruction means that the target client knows the language and character set that the target client wants to choose, and the language and character set supported by the service terminal; the service terminal can adopt the language and character set that the target client wants to choose
  • the language and character set supported by the service terminal are used as the language and character set for delivering RCS public messages; after the confirmation of the target client, the target client sends an instruction to the service terminal to tell the service terminal that the confirmation has been made; at this time, the command sent by the target client is The first confirmation instruction.
  • the language and character set that the client wants to choose can be one language, one character set, multiple languages, multiple character sets, or one language, multiple character sets, Multiple languages and multiple character sets.
  • Step A2 Send a second confirmation instruction to the target client according to the first confirmation instruction
  • the service terminal after receiving the first confirmation instruction from the target client, the service terminal knows that the target client has agreed to confirm, and selects the language and character set supported by the target client. Set, as the language and characters for delivering RCS public messages; at this time, the service terminal sends a second confirmation instruction to the target client.
  • the service terminal Knowing that the target client sent the first selection instruction to the service terminal to inform it of the language and character set it wants to choose, the service terminal has accepted it and can use it as the language and character set for delivering RCS public messages. At this time, the second Confirm the instruction to the service terminal.
  • the second confirmation instruction means that after receiving the first confirmation instruction sent by the target client, the service terminal knows that the target client has agreed to confirm the language and character set supported by the service terminal, and adopts the target client to choose and
  • the language and character set supported by the service terminal are issued RCS public messages; after further confirmation by the service terminal, a command is sent to tell the target client that the command sent by the service terminal at this time is the second confirmation command.
  • Step A3 Determine the target language and target character set selected by the target client according to the first selection instruction and the second confirmation instruction.
  • the target client wishes to select the language and character set
  • the service terminal accepts the language and character set supported by the service terminal, and issues an instruction to tell the target client; after the client knows the language and characters supported by the service terminal After the set, the first confirmation instruction is issued, and after the service terminal also issues the second confirmation instruction according to the first confirmation instruction, the service terminal uses the language and character set that the target client wants to select and supports by the service terminal as the target language and target character set.
  • the target client sends the first selection instruction to the service terminal, telling the terminal server which language and character set it wants to select, and the service terminal confirms that it supports the language and character set that the target client wants to select , And issue an instruction to tell the target client; after the client knows the language and character set supported by the service terminal, it sends a first confirmation command to the service terminal; after receiving the first confirmation command, the service terminal terminal further confirms it and sends it to the target client The terminal sends a second confirmation instruction; finally the service terminal determines that the language and characters that the target client wants to choose and that the service terminal supports are used as the target language and target character set for sending RCS public messages; the service terminal is avoided RCS public messages issued due to language or character set mismatch, and the local environment of the client are not adapted, resulting in garbled characters or cannot be displayed on the client, or the displayed language cannot be read by the user, so that the client user cannot Recognize RCS public messages normally; so that after negotiation, the client can use the user-selected RCS
  • step S50 includes:
  • Step B1 according to the first selection instruction, send a list of supported languages and character sets to the target client;
  • the target client sends a first selection instruction to the service terminal, telling the terminal server which language and character set it wants to select; in the second step, the service terminal confirms that the service terminal does not support the target client Want to choose the language and character set, at this time, send a list of languages and character sets supported by the service terminal to the target customer.
  • the list of supported languages and character sets refers to the forms of languages and character sets supported by the service terminal.
  • the service terminal supports the delivery of RCS public messages in these forms; all forms of languages and character sets supported by the service terminal , Is a list of languages and character sets supported by the service terminal.
  • the form mentioned here refers to a specific language or a specific character set.
  • the form of the language is Chinese, English, German, Japanese, Korean
  • the form of the character set is CP936 encoding, GB2312 encoding, Unicode encoding
  • the character set list includes: language, Chinese, English, German, Japanese, Korean, character set, CP936 encoding, GB2312 encoding, Unicode encoding.
  • the language and character set that the client wants to choose can be one language, one character set, multiple languages, multiple character sets, or one language, multiple character sets, Multiple languages and multiple character sets.
  • Step B2 Obtain the second optional instruction fed back by the target client based on the language and character set list;
  • the target client after receiving the list of languages and character sets supported by the service terminal, the target client knows that the service terminal has not accepted the language and character set that the service terminal wants to select, and the language and characters supported by the service terminal In the set list, the desired language and character set are selected again; at this time, a second selection instruction is sent to the service terminal to tell the service terminal of the language and character set it has selected again.
  • the second optional instruction means that in the list of languages and character sets supported by the service terminal, the target client selects the desired language and character set again, and sends an instruction to tell the service terminal client to further desire the language and character set,
  • the command sent by the client at this time is the second optional command.
  • the language and character set selected by the client again can be one language, one character set, multiple languages, multiple character sets, or one language, multiple character sets, multiple Multiple languages and multiple character sets.
  • Step B3 according to the second optional instruction, return the first successful instruction
  • the service terminal accepts the language and character set supported by the target client again.
  • the first successful command is sent to the target client to tell the target client that it has accepted the reselection Language and character set, as the language and character set for delivering RCS public messages.
  • the first successful instruction means that after receiving the second optional instruction sent by the target client, the service terminal agrees to the language and character set selected by the target client again, and can use it as the language and character for delivering RCS public messages Set and send an instruction to tell the target client that the instruction sent by the server at this time is the first successful instruction.
  • Step B4 Obtain a second successful instruction fed back by the target client based on the first successful instruction
  • the target client after receiving the first successful command from the service terminal, the target client knows that the target client sends the second optional command to the service terminal to inform it of the language and character set selected again.
  • the service terminal has accepted, It can be used as the language and character set for delivering RCS public messages.
  • the second successful command is sent to the service terminal.
  • the second successful instruction means that after the target client receives the first successful instruction sent by the service terminal, the target client knows that the language and character set it has selected again has been accepted by the service terminal and can be used as an RCS public message. For the language and character set of the target, the target client further agrees to confirm and sends an instruction to tell the service terminal that the command sent by the target client at this time is the second successful command.
  • Step B5 Determine the target language and target character set selected by the target client according to the second selection instruction and the second success instruction.
  • the service terminal accepts the language and character set selected by the target client again and issues a first success instruction. After the target client also issues the second success instruction according to the first success instruction, the service terminal changes the target client again. Select the desired language and character set as the target language and character set.
  • the target client sends a first selection instruction to the service terminal, telling the terminal server which language and character set it wants to select, and the service terminal confirms that it does not support the language and character set the target client wants to select; And send the list of languages and character sets supported by the service terminal to the client, and the client selects the desired language and character set from the list again.
  • the service terminal sends the first successful command to the target client according to the language and character set selected by the client again from the list; after the client receives the first successful command and further confirms, the second successful command is sent to the service terminal, and finally The service terminal determines that the target client selects the desired language and character again as the target language and target character set for delivering RCS public messages.
  • the RCS public messages delivered by the service terminal are not adapted to the language or character set, and are not adapted to the local environment of the client, resulting in garbled characters or cannot be displayed on the client, or the displayed language cannot be read by the user, which makes The client user cannot normally recognize the RCS public message; after negotiation, after the client's most preferred language and character set are not supported, the desired language and character set are selected again as the target language and target character set, so that the client can Use the language that is closer to the user's desire as the language for RCS public message display, and make the format of the RCS public message adapt to the local environment of the client.
  • step S50 includes:
  • Step C1 according to the first selection instruction, send a list of supported languages and character sets to the target client;
  • the target client sends a first selection instruction to the service terminal, telling the terminal server which language and character set it wants to select; in the second step, the service terminal confirms that the service terminal does not support the target client Want to choose the language and character set, at this time, send a list of languages and character sets supported by the service terminal to the target customer.
  • the language and character set that the client wants to choose can be one language, one character set, multiple languages, multiple character sets, or one language, multiple character sets, Multiple languages and multiple character sets.
  • Step C2 Obtain the first failed instruction fed back by the target client based on the language and character set list;
  • the target client after receiving the list of languages and character sets supported by the service terminal, the target client knows that the service terminal has not accepted the language and character set service terminal it wants to select, and the target client does not support the service terminal Make a selection in the language and character set list; and send the first failure instruction to the service terminal, telling the service terminal that it has not selected any language and character set.
  • the first failure instruction refers to that the target client does not select the desired language and character set again after receiving the list of languages and character sets supported by the service terminal, and sends an instruction to tell the service terminal that it has not selected the language and character set again. At this time, the instruction sent by the target client is the first failed instruction.
  • Step C3 According to the first failure instruction, issue a second failure instruction to the target client;
  • the fourth step after receiving the first failure instruction of the target client, the service terminal knows that the target client has not been selected again from the list of languages and character sets supported by the service terminal. At this time, the service terminal sends a second failure instruction to Target client.
  • the second failure instruction means that after receiving the first failure instruction of the target client, the service terminal knows that the target client has not selected again from the list of languages and character sets supported by the service terminal, and does not need to use any language and character set as The target language and target character set selected by the target client; and send an instruction to tell the service terminal that it has confirmed that the target client does not select any language and character set.
  • the command sent by the service terminal is the second failed command.
  • Step C4 Determine the target language and target character set selected by the target client.
  • the service terminal After receiving the first failure instruction from the target client, the service terminal knows that the target client has not reselected from the list of languages and character sets supported by the service terminal; but the language and character set that the target client wants to choose is not supported by the service terminal.
  • the target client also does not want to use any language and character set provided by the service terminal; therefore, by negotiating the service terminal to determine not to use any language and character set as the target client ’s registered language and registered character set, when issuing RCS public messages, No longer deliver to the target client.
  • the target client through negotiation between the service terminal and the target client, the target client sends a first selection instruction to inform the service terminal that the target client wants to select the language and character set. If the language and character set that the target client wants to use in the service terminal do not exist, and the target client no longer selects the language and character set supported by the service terminal, the service terminal finally determines not to use any language and character set as the target client ’s Register the language and register the character set; when the service terminal sends RCS public messages, it will no longer send the target client; after the RCS public message is sent to the target client, the target client local environment is not supported and garbled characters appear Or it cannot be displayed normally, and the user cannot read the identification normally, which avoids invalid delivery and saves resources of the service terminal.
  • the RCS public message processing method further includes:
  • the service terminal If the service terminal does not receive the client's request to select the language and character set, the service terminal sends an acquisition instruction to the client, reminds the client to select the language and character set, and obtains the desired language and character set from the client.
  • the acquisition instruction refers to the service terminal sending a request to the client, allowing the client to select the language and character set it wants to choose, and the request sent by the service terminal to the client is the acquisition instruction.
  • the service terminal After the service terminal sends the acquisition instruction to the client, if the client does not feedback any instruction within the preset time, the service terminal does not receive the feedback instruction, and the service terminal does not know the language and character set the client wishes to choose ; Get the client's customer ID. If the client receives feedback based on the acquisition instruction, the service terminal may negotiate with the client to determine the client's registration language and registration character set in the manner mentioned in the second and third embodiments.
  • the client ID refers to an identification mark that can distinguish different clients, and the specific client can be determined by the identification mark; for example, it can be an identification number, account number, unique code, exclusive number, and so on.
  • the client's feedback based on the acquisition instruction means that after receiving the acquisition instruction of the service terminal, the client makes a language and character set selection and informs the service terminal, or does not select the language and character set and informs the service terminal.
  • S90 Update the registered language and registered character set of the client according to the customer identification, default language and default character set.
  • the service terminal associates the client's client ID with the default language and default character set, and assigns the default language and default character set to the client's registered language and registered character set corresponding to the client's ID to realize the update of the client's registered language and registered character set .
  • the default language and default character set refer to the language and character set used by default when sending RCS public messages set by the service terminal.
  • Update means that after the service terminal sends an acquisition instruction to the client and the client has no feedback, the service terminal uses the default language and default character set to assign values to the client's registered language and registered character set.
  • the service terminal if the service terminal does not receive the client's request to select the language and character set, the service terminal sends an acquisition instruction to the client. If the client does not receive feedback based on the acquisition instruction within a preset time period, it adopts The default language and default character set of the service terminal update the registered language and registered character set of the client; and send RCS public messages to the client without feedback, using the default language and default character set; avoiding the client's desire to receive To the RCS public message, but due to various reasons did not give feedback to the service terminal, and could not receive the RCS public message; so that the client user can receive the RCS public message during use and find out whether it is displayed normally or in compliance User needs, and then set or change the language and character set according to user needs.
  • an embodiment of the present disclosure also proposes a computer-readable storage medium having an RCS public message processing program stored on the computer-readable storage medium.
  • the RCS public message processing program is executed by the processor to implement the RCS public message processing method as described above A step of.
  • An RCS public message processing method, mobile terminal and storage medium proposed in the embodiments of the present disclosure, through consultation and confirmation with each client, update the registration language and registration character set of each client; obtain the current use of each client Registration language and registration character set; according to each registration language and registration character set, the RCS public message to be sent is converted into each compatible public message adapted to each client, and each compatible public message is sent to the adapted Each client; so that when sending RCS public messages, each different client receives the same public content, which is obtained and displayed by adapting the client's language and character set; different languages and character sets are used for different clients , Convert the unified and fixed language and character set used in the delivery of RCS public messages into the language and character set suitable for each client; avoid the use of a unified fixed language and character set, and some clients receive RCS public messages When there is a mismatch, garbled or unable to display, or display The client can not read the language of the user; RCS enables the user to properly identify the public message.
  • An RCS public message processing method, mobile terminal, and storage medium proposed in embodiments of the present disclosure, so that when receiving RCS public messages, different clients receive the same public content, which is obtained by adapting the client's language and character set, respectively It also shows that the user's language habits are satisfied, so that the user can normally recognize the RCS public message.
  • the methods in the above embodiments can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware, but in many cases the former is better Implementation.
  • the technical solution of the present disclosure can be embodied in the form of a software product in essence or a part that contributes to the existing technology, and the computer software product is stored in a storage medium (such as ROM / RAM) , Magnetic disks, optical disks), including several instructions to enable a terminal device (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to perform the methods described in various embodiments of the present disclosure.

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Theoretical Computer Science (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

Disclosed in the present invention is an RCS public message processing method: obtaining registered languages and registered character sets currently used by clients; converting an RCS public message to be sent into compatible public messages adaptive to the clients according to the registered languages and the registered character sets; and sending the compatible public messages respectively to the adaptive clients. Also disclosed in the present invention is a mobile terminal and a computer readable storage medium.

Description

RCS公众消息处理方法、移动终端及可读存储介质RCS public message processing method, mobile terminal and readable storage medium
本公开要求享有2018年10月31日提交的名称为“RCS公众消息处理方法、移动终端及可读存储介质”的中国专利申请CN201811299392.0的优先权,其全部内容通过引用并入本文中。This disclosure claims the priority of the Chinese patent application CN201811299392.0 entitled “RCS public message processing method, mobile terminal and readable storage medium” filed on October 31, 2018, the entire contents of which are incorporated herein by reference.
技术领域Technical field
本公开涉及融合通信技术领域,尤其涉及一种RCS公众消息处理方法、移动终端及可读存储介质。The present disclosure relates to the field of converged communication technologies, and in particular, to an RCS public message processing method, a mobile terminal, and a readable storage medium.
背景技术Background technique
随着通信网络技术的快速发展,全球越来越多的人使用RCS(Rich Communication Suite,融合通信)应用接收信息,随着使用RCS应用用户人数的增多,服务端会采用公众消息的方式统一下消息发给各个用户,例如微信公众号中的公众消息,服务端会将一条推送内容发送给各个关注用户。但是,服务端采用的都是统一固定的语言和字符集下发消息给RCS应用客户端,而RCS应用客户端的用户可能是来自不同的地区,使用的是不同的语言和字符集;服务端采用统一固定的语言和字符集下发RCS公众消息,使得消息到达RCS应用客户端时无法正常显示,比如在RCS应用客户端显示了用户不懂的语言、或者RCS应用客户端不支持该语言和字符集等等,导致有的用户会出现看不懂的情况。With the rapid development of communication network technology, more and more people around the world use the RCS (Rich Communication) application to receive information. With the increase in the number of users using RCS applications, the server will adopt the method of public messaging to unify The message is sent to each user, such as the public message in the WeChat public account, and the server will send a push content to each user concerned. However, the server uses a unified fixed language and character set to send messages to the RCS application client, and the users of the RCS application client may be from different regions and use different languages and character sets; the server uses RCS public messages are delivered in a unified fixed language and character set, so that the messages cannot be displayed normally when they reach the RCS application client. For example, the RCS application client displays a language that the user does not understand, or the RCS application client does not support the language and characters Sets, etc., cause some users to appear incomprehensible.
上述内容仅用于辅助理解本公开的技术方案,并不代表承认上述内容是现有技术。The above content is only used to help understand the technical solutions of the present disclosure, and does not mean that the above content is recognized as prior art.
发明内容Summary of the invention
本公开的主要目的在于提供一种RCS公众消息处理方法,旨在解决采用统一固定的语言和字符集下发RCS公众消息,导致有的RCS应用客户端不适用统一固定的语言和字符集,使得用户无法识别公众消息的技术问题。The main purpose of the present disclosure is to provide a method for processing RCS public messages, which aims to solve the problem of sending RCS public messages using a unified and fixed language and character set, resulting in some RCS application clients not applying the unified and fixed language and character set. Users cannot identify technical issues with public messages.
本公开实施例提出一种RCS公众消息处理方法方法,包括:获取各个客户端当前使用的各个登记语言和登记字符集;根据各个登记语言和登记字符集,将待发送的RCS公 众消息分别转换为与各个客户端适配的各个兼容公众消息;将各个兼容公众消息分别发送给适配的各个客户端。An embodiment of the present disclosure proposes a method for processing RCS public messages, including: acquiring each registered language and registered character set currently used by each client; according to each registered language and registered character set, converting the RCS public messages to be sent into Each compatible public message adapted to each client; each compatible public message is sent to each adapted client separately.
此外,为实现上述目的,本公开还提供一种移动终端,所述移动终端包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的RCS公众消息处理程序,所述RCS公众消息处理程序被所述处理器执行时实现如上所述的RCS公众消息处理方法的步骤。In addition, to achieve the above object, the present disclosure also provides a mobile terminal, the mobile terminal includes: a memory, a processor, and an RCS public message processing program stored on the memory and executable on the processor, so The steps of the RCS public message processing method described above when the RCS public message processing program is executed by the processor.
此外,为实现上述目的,本公开还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有RCS公众消息处理程序,所述RCS公众消息处理程序被处理器执行时实现如上所述的RCS公众消息处理方法的步骤。In addition, in order to achieve the above object, the present disclosure also provides a computer-readable storage medium on which an RCS public message processing program is stored, and the RCS public message processing program is implemented as described above when executed by a processor The steps of the RCS public message processing method described above.
附图说明BRIEF DESCRIPTION
图1是本公开实施例方案涉及的硬件运行环境的终端结构示意图;FIG. 1 is a schematic diagram of a terminal structure of a hardware operating environment involved in an embodiment of the present disclosure;
图2为本公开RCS公众消息处理方法第一实施例的流程示意图;2 is a schematic flowchart of a first embodiment of a public message processing method of RCS disclosed;
图3为本公开RCS公众消息处理方法第二实施例的流程示意图;3 is a schematic flowchart of a second embodiment of a public message processing method of RCS in the present disclosure;
图4为本公开RCS公众消息处理方法第二实施例的协商流程示意图;4 is a schematic diagram of a negotiation process of a second embodiment of a public message processing method of RCS disclosed;
图5为本公开RCS公众消息处理方法第三实施例的一协商流程示意图;5 is a schematic diagram of a negotiation process of the third embodiment of the public RCS public message processing method of the present disclosure;
图6为本公开RCS公众消息处理方法第三实施例的另一协商流程示意图。6 is a schematic diagram of another negotiation process of the third embodiment of the disclosed RCS public message processing method.
本公开目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization, functional characteristics and advantages of the purpose of the present disclosure will be further described in conjunction with the embodiments and with reference to the drawings.
具体实施方式detailed description
应当理解,此处所描述的具体实施例仅仅用以解释本公开,并不用于限定本公开。It should be understood that the specific embodiments described herein are only used to explain the present disclosure and are not intended to limit the present disclosure.
本公开实施例的主要解决方案是:与各个客户端进行协商确认,对各个客户端的登记语言和登记字符集进行更新;获取各个客户端当前使用的各个登记语言和登记字符集;根据各个登记语言和登记字符集,将待发送的RCS公众消息分别转换为与各个客户端适配的各个兼容公众消息,并将各个兼容公众消息分别发送给适配的各个客户端。The main solutions of the embodiments of the present disclosure are: negotiate and confirm with each client, update the registered language and registered character set of each client; obtain each registered language and registered character set currently used by each client; according to each registered language And register the character set, convert the RCS public messages to be sent into compatible public messages that are adapted to each client, and send each compatible public message to each adapted client.
由于在一些情况中,下发RCS公众消息时采用的是统一固定的语言和字符集,因RCS应用客户端不支持该语言和字符集、或用户不懂该语言,使得消息到达RCS应用客户端时无法正常显示,用户无法正常读取RCS公众消息。In some cases, the unified and fixed language and character set are used when sending RCS public messages. Because the RCS application client does not support the language and character set, or the user does not understand the language, the message reaches the RCS application client. Cannot be displayed normally, and users cannot read RCS public messages normally.
本公开提供一种解决方案,使得下发RCS公众消息时,各个不同的客户端接收同一公众内容,可以分别通过适配客户端的语言和字符集进行获取并显示,使得用户可以正常读取RCS公众消息。The present disclosure provides a solution so that when sending RCS public messages, different clients receive the same public content, which can be obtained and displayed by adapting the client's language and character set, respectively, so that users can read the RCS public normally News.
如图1所示,图1是本公开实施例方案涉及的硬件运行环境的终端结构示意图。As shown in FIG. 1, FIG. 1 is a schematic diagram of a terminal structure of a hardware operating environment involved in a solution of an embodiment of the present disclosure.
本公开实施例终端可以是PC,也可以是智能手机、平板电脑、电子书阅读器、MP3(Moving Picture Experts Group Audio Layer III,动态影像专家压缩标准音频层面3)播放器、MP4(Moving Picture Experts Group Audio Layer IV,动态影像专家压缩标准音频层面3)播放器、数字广播接收器、穿戴式设备(比如智能手环、智能手表等)、导航装置、便携计算机等可移动式终端设备、或不可移动的终端设备。In the embodiment of the present disclosure, the terminal may be a PC, a smart phone, a tablet computer, an e-book reader, an MP3 (Moving Pictures Expert Group, Audio Layer 3, motion picture expert compression standard audio level 3) player, and an MP4 (Moving Pictures Experts) Group Audio Layer IV, compression standard audio level for motion picture experts 3) Players, digital broadcast receivers, wearable devices (such as smart bracelets, smart watches, etc.), navigation devices, portable computers and other portable terminal devices, or not Mobile terminal equipment.
如图1所示,该终端可以包括:处理器1001,例如CPU,网络接口1004,用户接口1003,存储器1005,通信总线1002。其中,通信总线1002用于实现这些组件之间的连接通信。用户接口1003可以包括显示屏(Display)、输入单元比如键盘(Keyboard),在一实施方式中用户接口1003还可以包括标准的有线接口、无线接口。网络接口1004在一实施方式中可以包括标准的有线接口、无线接口(如WI-FI接口)。存储器1005可以是高速RAM存储器,也可以是稳定的存储器(non-volatile memory),例如磁盘存储器。存储器1005在一实施方式中还可以是独立于前述处理器1001的存储装置。As shown in FIG. 1, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002. Among them, the communication bus 1002 is used to implement connection communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and in an embodiment, the user interface 1003 may further include a standard wired interface and a wireless interface. In one embodiment, the network interface 1004 may include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as a disk memory. In an embodiment, the memory 1005 may also be a storage device independent of the foregoing processor 1001.
本公开方法实施例中,为了方便理解,采用服务终端作为执行主体进行说明,方法实施例中的服务终端就是本公开实施例的终端。In the method embodiments of the present disclosure, in order to facilitate understanding, a service terminal is used as an execution subject for description. The service terminal in the method embodiment is the terminal of the embodiment of the present disclosure.
本领域技术人员可以理解,图1中示出的终端结构并不构成对终端的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Those skilled in the art may understand that the terminal structure shown in FIG. 1 does not constitute a limitation on the terminal, and may include more or fewer components than those illustrated, or combine certain components, or arrange different components.
如图1所示,作为一种计算机存储介质的存储器1005中可以包括操作系统、网络通信模块、用户接口模块以及RCS公众消息处理程序。As shown in FIG. 1, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and an RCS public message processing program.
在图1所示的终端中,网络接口1004主要用于连接后台服务器,与后台服务器进行数据通信;用户接口1003主要用于连接客户端(用户端),与客户端进行数据通信;而处理器1001可以用于调用存储器1005中存储的RCS公众消息处理程序,并执行以下操 作:获取各个客户端当前使用的各个登记语言和登记字符集;根据各个登记语言和登记字符集,将待发送的RCS公众消息分别转换为与各个客户端适配的各个兼容公众消息;将各个兼容公众消息分别发送给适配的各个客户端。In the terminal shown in FIG. 1, the network interface 1004 is mainly used to connect to the background server and perform data communication with the background server; the user interface 1003 is mainly used to connect to the client (user side) and perform data communication with the client; and the processor 1001 can be used to call the RCS public message processing program stored in the memory 1005 and perform the following operations: obtain each registered language and registered character set currently used by each client; according to each registered language and registered character set, the RCS to be sent The public messages are converted into compatible public messages adapted to each client; and each compatible public message is sent to each adapted client.
在一实施方式中,所述RCS公众消息处理方法包括:当接收到所述客户端发送的第一选用指令;根据所述第一选用指令,确定发送所述第一选用指令的目标客户端选用的目标语言和目标字符集;根据所述目标语言和目标字符集,对所述目标客户端的登记语言和登记字符集进行更新。In an embodiment, the RCS public message processing method includes: when receiving a first optional instruction sent by the client; according to the first optional instruction, determining the target client that sends the first optional instruction The target language and the target character set; update the registered language and the registered character set of the target client according to the target language and the target character set.
在一实施方式中,所述根据所述第一选用指令,确定发送所述第一选用指令的目标客户端选用的目标语言和目标字符集的步骤包括:根据所述第一选用指令,获取所述目标客户端发送的第一确认指令;根据第一确认指令,向所述目标客户端发送第二确认指令;根据所述第一选用指令和所述第二确认指令,确定所述目标客户端选用的目标语言和目标字符集。In an embodiment, the step of determining the target language and the target character set selected by the target client that sends the first optional instruction according to the first optional instruction includes: according to the first optional instruction, obtaining The first confirmation instruction sent by the target client; according to the first confirmation instruction, send a second confirmation instruction to the target client; according to the first selection instruction and the second confirmation instruction, determine the target client The selected target language and target character set.
在一实施方式中,所述根据所述第一选用指令,确定发送所述第一选用指令的目标客户端选用的目标语言和目标字符集的步骤包括:根据所述第一选用指令,发送支持的语言和字符集列表给所述目标客户端;获取所述目标客户端基于所述语言和字符集列表反馈的第二选用指令;根据所述第二选用指令,返回第一成功指令;获取所述目标客户端基于第一成功指令反馈的第二成功指令;根据所述第二选用指令和所述第二成功指令,确定所述目标客户端选用的目标语言和目标字符集。In an embodiment, the step of determining the target language and target character set selected by the target client sending the first optional instruction according to the first optional instruction includes: according to the first optional instruction, sending support List of languages and character sets to the target client; obtain a second optional instruction fed back by the target client based on the list of languages and character sets; according to the second optional instruction, return a first successful instruction; The target client feedbacks the second successful command based on the first successful command; and according to the second optional command and the second successful command, determines the target language and target character set selected by the target client.
在一实施方式中,所述根据所述第一选用指令,确定发送所述第一选用指令的客户端选用的目标语言和目标字符集的步骤包括:根据所述第一选用指令,发送支持的语言和字符集列表给所述目标客户端;获取所述目标客户端基于所述语言和字符集列表反馈的第一失败指令;根据所述第一失败指令,下发第二失败指令给所述目标客户端;确定所述目标客户端选用的目标语言和目标字符集。In an embodiment, the step of determining the target language and target character set selected by the client that sends the first optional instruction according to the first optional instruction includes: according to the first optional instruction, sending the supported language List the language and character set to the target client; obtain a first failure instruction fed back by the target client based on the language and character set list; and issue a second failure instruction to the target according to the first failure instruction Target client; determine the target language and target character set selected by the target client.
在一实施方式中,所述第一选用指令包括:获取所述客户端首次设置语言反馈的指令 作为第一选用指令;或者获取所述客户端更改语言反馈的指令作为第一选用指令。In one embodiment, the first optional instruction includes: acquiring an instruction for the client to set language feedback for the first time as the first optional instruction; or acquiring an instruction for the client to change the language feedback as the first optional instruction.
在一实施方式中,所述RCS公众消息处理方法包括:向所述客户端发送语言和字符集选择的获取指令;若在预设时长内,没有接收到所述客户端基于获取指令的反馈,则获取所述客户端的客户标识;根据所述客户标识与默认语言和默认字符集,对所述客户端的登记语言和登记字符集进行更新。In one embodiment, the RCS public message processing method includes: sending an acquisition instruction of language and character set selection to the client; if within a preset time period, the client does not receive feedback based on the acquisition instruction, Then obtain the client ID of the client; update the registered language and registered character set of the client according to the client ID and the default language and default character set.
在一实施方式中,所述根据各个登记语言和登记字符集,将待发送的RCS公众消息分别转换为与各个客户端适配的各个兼容公众消息的步骤包括:根据各个登记语言和登记字符集,将RCS公众消息分别进行格式转换形成各个登记语言和登记字符集的格式;根据所述各个登记语言和登记字符集的格式,得到与各个客户端适配的各个兼容公众消息。In one embodiment, the step of converting the RCS public message to be sent into each compatible public message adapted to each client according to each registered language and registered character set includes: according to each registered language and registered character set , Convert the format of the RCS public message to form the format of each registered language and registered character set; according to the format of each registered language and registered character set, each compatible public message adapted to each client is obtained.
基于上述硬件结构,提出本公开方法实施例。Based on the above hardware structure, an embodiment of the disclosed method is proposed.
参照图2,在本公开RCS公众消息处理方法第一实施例中,RCS公众消息处理方法包括:Referring to FIG. 2, in the first embodiment of the RCS public message processing method of the present disclosure, the RCS public message processing method includes:
步骤S10,获取各个客户端当前使用的各个登记语言和登记字符集;Step S10: Obtain each registered language and registered character set currently used by each client;
本实施例方法的执行主体可以为一种服务终端,该服务终端可以承载于网络服务器中。The execution subject of the method in this embodiment may be a service terminal, and the service terminal may be carried in a network server.
为了方便理解,本公开实施例涉及服务终端和客户端进行说明,其中,服务终端用于向客户端下发RCS公众消息,客户端用于接收服务终端下发的RCS公众消息。本公开实施例的服务终端可以为手机、计算机、笔记本电脑、穿戴式设备等等;客户端也可以为手机、计算机、笔记本电脑、穿戴式设备。For ease of understanding, the embodiments of the present disclosure relate to a service terminal and a client for description, where the service terminal is used to deliver RCS public messages to the client, and the client is used to receive RCS public messages delivered by the service terminal. The service terminal of the embodiment of the present disclosure may be a mobile phone, computer, notebook computer, wearable device, etc .; the client may also be a mobile phone, computer, notebook computer, wearable device.
其中,RCS公众消息,是指服务终端给各个客户端统一下发的消息,例如,微信公众号的推文。Among them, the RCS public message refers to the message that the service terminal sends to each client in a unified manner, for example, the tweet of the WeChat public account.
其中,登记字符集,是指服务终端发送RCS公众消息时采用的编码方式,比如CP936编码、GB2312编码、Unicode编码等,这种编码方式是客户端本地环境支持的方式,以保证客户端能接收到RCS公众消息。登记语言,是指客户端接收到RCS公众消息时,客户端显示的语言,例如,英语、法语、新西兰语等,登记语言是客户端本地环境支持的语言。客户端当前使用的登记语言和登记字符集,是服务终端通过与客户端进行协商的方式,接收客户端选择语言和字符集的申请,然后服务终端与客户端多次确认得到;或者是服务 终端向客户端发送指令,让客户端选择接收RCS公众消息需要采用的语言和登字符集,然后服务终端与客户端多次确认得到。Among them, the registered character set refers to the encoding method used by the service terminal when sending RCS public messages, such as CP936 encoding, GB2312 encoding, Unicode encoding, etc. This encoding method is supported by the local environment of the client to ensure that the client can receive To RCS public news. The registration language refers to the language displayed by the client when the client receives the RCS public message, for example, English, French, New Zealand, etc. The registration language is the language supported by the client's local environment. The registration language and character set currently used by the client are the way in which the service terminal negotiates with the client and receives the application for the client to select the language and character set, and then the service terminal and the client confirm multiple times; or the service terminal Send instructions to the client to allow the client to choose the language and logon character set required to receive RCS public messages, and then the service terminal and the client confirm multiple times.
这里需要说明的是,为了更好的实现发明目的,在一实施方式中,本方法实施例采用服务终端与客户端沟通协商确认的方式,确定客户端需要选用的语言和字符集作为客户端当前使用的登记语言和登记字符集。当然也可以采用第三方与客户端沟通协商确认的方式,确定客户端需要选用的语言和字符集作为客户端当前使用的登记语言和登记字符集,服务终端只需要从第三方获取到客户端当前使用的登记语言和登记字符集。It should be noted here that, in order to better achieve the purpose of the invention, in an embodiment, this method embodiment uses a method of communication, negotiation and confirmation between the service terminal and the client to determine the language and character set that the client needs to select as the current client The registered language and registered character set used. Of course, you can also use a third-party to communicate and confirm with the client to determine the language and character set that the client needs to use as the registered language and registered character set currently used by the client. The service terminal only needs to obtain the client's current The registered language and registered character set used.
步骤S20,根据各个登记语言和登记字符集,将待发送的RCS公众消息分别转换为与各个客户端适配的各个兼容公众消息;其中,兼容公众消息,是指下发时采用的语言和字符集都适应客户端本地环境的RCS公众消息。In step S20, according to each registered language and registered character set, the RCS public message to be sent is converted into each compatible public message adapted to each client; wherein, the compatible public message refers to the language and characters used in the delivery RCS public messages that are all adapted to the client's local environment.
服务终端获取各个客户端当前使用的各个登记语言和登记字符集后,根据各个客户端的各个登记语言和登记字符集,服务终端将准备要发送给各个客户端的RCS公众消息分别转换成各个兼容公众消息,然后再将各个兼容公众消息发给适配的各个客户端。After the service terminal obtains each registered language and registered character set currently used by each client, according to each registered language and registered character set of each client, the service terminal converts the RCS public message to be sent to each client into each compatible public message , And then send each compatible public message to the adapted clients.
步骤S30,将各个兼容公众消息分别发送给适配的各个客户端。Step S30: Send each compatible public message to each adapted client.
服务终端将准备要发送给各个客户端的RCS公众消息分别转换成各个兼容公众消息后,再将各个兼容公众消息发给适配的各个客户端。The service terminal converts the RCS public messages to be sent to each client into various compatible public messages, and then sends each compatible public message to the adapted clients.
为了方便理解,举例进行说明;例如,RCS应用的客户端承载在手机上,手机系统环境本身支持的语言包括中文,英文,日语,韩语;手机系统环境本身支持的字符集包括CP936编码、GB2312编码。用户在手机系统本地或者客户端选择采用的语言为中文,经过服务器与客户端协商确认后,确定发送RCS公众消息采用的语言和字符集分别为中文、GB2312编码,那么客户端当前使用的登记语言和登记字符集分别为中文、GB2312编码。服务终端会将待发送的RCS公众消息转换成语言和字符集分别是中文、GB2312编码的格式,形成兼容公众消息,然后服务终端将兼容公众消息发送给手机上的客户端,客户端就能采用用户选择的中文进行显示。For ease of understanding, an example is used to illustrate; for example, the client of the RCS application is carried on a mobile phone, and the languages supported by the mobile phone system environment include Chinese, English, Japanese, and Korean; the character sets supported by the mobile phone system environment include CP936 encoding and GB2312 encoding . The user chooses the local language of the mobile phone system or the client to be Chinese. After the server and the client negotiate and confirm, the language and character set used to send the RCS public message are Chinese and GB2312 code, then the client currently uses the registered language And the registered character set are Chinese, GB2312 encoding. The service terminal will convert the RCS public message to be sent into Chinese and GB2312 encoded formats of language and character set to form a compatible public message, and then the service terminal will send the compatible public message to the client on the mobile phone, and the client can use The Chinese language selected by the user is displayed.
在本实施例中,服务终端通过获取各个客户端当前使用的各个登记语言和登记字符集,然后服务终端根据各个登记语言和登记字符集,将待发送的RCS公众消息分别转换为与各个客户端适配的各个兼容公众消息,并分别下发各个兼容公众消息给适配的各个客户端;使得服务终端下发RCS公众消息给客户端时,采用的语言和字符集能适应客户端的本地环境。并且服务终端采用的是经过与客户端协商后确认的选用语言和选用字符集,作为客户端当前的登记语言和登记字符集;使得用户在使用RCS应用的客户端接收到RCS公众 消息时,显示的是更贴近用户需求的语言,满足了用户需求。In this embodiment, the service terminal obtains each registered language and registered character set currently used by each client, and then the service terminal converts the RCS public message to be sent to each client according to each registered language and registered character set Adapt the compatible public messages and deliver the compatible public messages to the adapted clients separately; so that when the service terminal sends RCS public messages to the client, the language and character set used can adapt to the client's local environment. And the service terminal uses the selected language and selected character set confirmed after consultation with the client as the current registered language and registered character set of the client; so that the user displays when the client using the RCS application receives the RCS public message The language is closer to the user's needs and meets the user's needs.
在一实施方式中,步骤S20包括:In one embodiment, step S20 includes:
步骤S21,根据各个登记语言和登记字符集,将RCS公众消息分别进行格式转换形成各个登记语言和登记字符集的格式;In step S21, according to each registered language and registered character set, the RCS public message is formatted to form the format of each registered language and registered character set;
服务终端根据各个登记语言和登记字符集,将RCS公众消息的统一固定语言和字符集转换成,各个客户端当前使用的登记语言和登记字符集。The service terminal converts the unified fixed language and character set of the RCS public message into the registered language and registered character set currently used by each client according to each registered language and registered character set.
其中,登记语言和登记字符集的格式,是指将RCS公众消息的统一固定语言和字符集转换成适应客户端本地环境支持的语言和字符集,其中,转换成的语言和字符集是客户端当前使用的登记语言和登记字符集,转换后的RCS公众消息就是登记语言和登记字符集的格式。Among them, the format of the registered language and registered character set refers to the conversion of the unified fixed language and character set of the RCS public message into a language and character set that is adapted to the local environment of the client, and the converted language and character set is the client The registered language and registered character set currently used, the converted RCS public message is the format of the registered language and registered character set.
步骤S22,根据各个登记语言和登记字符集的格式,得到与各个客户端适配的各个兼容公众消息。In step S22, according to the format of each registered language and registered character set, each compatible public message adapted to each client is obtained.
服务终端将RCS公众消息的统一固定语言和字符集,转换成各个客户端当前使用的各个登记语言和登记字符集的格式;RCS公众消息的统一固定语言和字符集,转换成各个客户端当前使用的各个登记语言和登记字符集的格式后,就形成各个兼容消息。The service terminal converts the unified fixed language and character set of the RCS public message into the format of each registered language and registered character set currently used by each client; the unified fixed language and character set of the RCS public message is converted into the current use of each client After each registered language and the format of the registered character set, each compatible message is formed.
在本实施例中,服务终端通过将RCS公众消息的统一固定语言和字符集,转换成适应客户端本地环境支持的语言和字符集,其中,转换成的语言和字符集是客户端当前使用的登记语言和登记字符集,形成适配各个客户端的各个兼容消息;用户在使用RCS应用的客户端,接收服务终端发送RCS公众消息时,可以针对不同的客户端用户需求和客户端本地环境,接收不同语言和字符集格式的兼容消息;避免了采用统一固定的语言和字符集下发RCS公众消息,有的客户端接收RCS公众消息时出现不适配,出现乱码或无法显示,或者显示的是客户端用户看不懂的语言;满足了不同客户端采用不同语言和字符集的需求,或者同一客户端采用不同语言和字符集的需求,使得用户能准确地识别RCS公众消息。In this embodiment, the service terminal converts the unified fixed language and character set of the RCS public message into a language and character set that is adapted to the local environment of the client, where the converted language and character set are currently used by the client Register the language and register the character set to form each compatible message that adapts to each client; when the user uses the RCS application client and receives the service terminal to send the RCS public message, the user can respond to different client user needs and client local environment. Compatible messages in different languages and character set formats; avoiding the use of a unified and fixed language and character set to deliver RCS public messages. Some clients receive RCS public messages that are not suitable, garbled or unable to display, or display Languages that client users cannot understand; meet the needs of different clients using different languages and character sets, or the same client using different languages and character sets, enabling users to accurately identify RCS public messages.
参照图3,在本公开RCS公众消息处理方法第二实施例中,基于上述图2所示的实施例,RCS公众消息处理方法还包括:Referring to FIG. 3, in the second embodiment of the RCS public message processing method of the present disclosure, based on the embodiment shown in FIG. 2, the RCS public message processing method further includes:
步骤S40,当接收到客户端发送的第一选用指令;Step S40, when the first selection instruction sent by the client is received;
在本实施例中,采用客户端承载于手机上来举例,当然客户端也可以承载于其他的设 备中,例如,笔记本电脑、智能手环等等。客户端用户在手机上安装了RCS应用后,可能会对手机系统本身的语言进行设置、或者对客户端的语言进行设置;当用户对手机系统本身的语言或者客户端的语言进行设置后,客户端上线后会给服务终端发送第一选用指令,告诉终端服务器客户端想要选用的语言和字符集。In this embodiment, the client is carried on a mobile phone as an example. Of course, the client can also be carried on other devices, such as a notebook computer, a smart bracelet, and so on. After the client user installs the RCS application on the mobile phone, the language of the mobile phone system itself or the language of the client may be set; when the user sets the language of the mobile phone system itself or the language of the client, the client goes online After that, a first selection instruction will be sent to the service terminal, telling the terminal server that the client wants to select the language and character set.
其中,第一选用指令,是指RCS应用的客户端用户在设置或更改了客户端本地语言或者客户端语言时,客户端给服务终端发送指令,告诉服务终端客户端想要选用的语言和字符集,客户端此时发送的指令就是第一选用指令。Among them, the first selection instruction refers to that when the client user of the RCS application sets or changes the client's local language or client language, the client sends an instruction to the service terminal to tell the service terminal the language and character that the client wants to select Set, the command sent by the client at this time is the first optional command.
这里需要说明的是,客户端想要选用的语言和字符集可以是一种语言、一种字符集,也可以是多种语言、多种字符集,或者是一种语言、多种字符集,多种语言、多种字符集。It should be noted here that the language and character set that the client wants to choose can be one language, one character set, multiple languages, multiple character sets, or one language, multiple character sets, Multiple languages and multiple character sets.
步骤S50,根据第一选用指令,确定发送第一选用指令的目标客户端选用的目标语言和目标字符集;Step S50: According to the first selection instruction, determine the target language and target character set selected by the target client sending the first selection instruction;
服务终端根据第一选用指令,确定目标客户端想要选用的语言和字符集,并根据服务终端支持的语言和字符集,跟目标客户端进一步协商确定最终客户端选用的语言和字符集,并将目标客户端选用的语言和字符集作为目标语言和目标字符集。The service terminal determines the language and character set that the target client wants to select according to the first selection instruction, and further negotiates with the target client to determine the language and character set selected by the final client according to the language and character set supported by the service terminal, and Use the language and character set selected by the target client as the target language and target character set.
其中,目标客户端,是指发送第一选用指令,告诉服务终端想要选用的语言和字符集的客户端。目标语言和目标字符集,是指目标客户端发送第一选用指令给服务终端后,服务终端通过确认服务终端是否有支持客户端想要选用的语言和字符集;如果有,服务终端就跟目标客户端进一步确认,并选用目标客户端想要选用的语言和字符集,作为服务终端下发RCS公众消息给目标客户端的语言和字符集,目标客户端发送第一选用指令想要选用的语言和字符集,就是目标语言和目标字符集;如果没有,服务终端就跟目标客户端进一步协商并确认选用其他服务终端支持的语言和字符集,作为服务终端下发RCS公众消息给目标客户端的语言和字符集,进一步协商确认的语言和字符集,就是目标语言和目标字符集。The target client refers to a client that sends the first selection instruction and tells the service terminal the language and character set it wants to select. Target language and target character set means that after the target client sends the first selection instruction to the service terminal, the service terminal confirms whether the service terminal supports the language and character set that the client wants to select; if so, the service terminal follows the target The client further confirms and selects the language and character set that the target client wants to use, as the service terminal sends the RCS public message to the language and character set of the target client, and the target client sends the first option command to select the language and character The character set is the target language and target character set; if not, the service terminal further negotiates with the target client and confirms the selection of languages and character sets supported by other service terminals, as the service terminal sends RCS public messages to the target client's language and The character set, the language and character set confirmed by further negotiation, is the target language and target character set.
步骤S60,根据目标语言和目标字符集,对目标客户端的登记语言和登记字符集进行更新。Step S60: Update the registered language and registered character set of the target client according to the target language and target character set.
目标客户端设置或更改了选用的语言和字符集后,目标客户端发送第一选用指令告知服务终端,并与服务终端进行协商确认后得到目标语言和目标字符集。服务终端利用该目标语言和目标字符集,对目标客户端的登记语言和登记字符值进行赋值,实现对目标客户端的登记语言和登记字符集进行更新。After the target client sets or changes the selected language and character set, the target client sends the first optional instruction to inform the service terminal, and after consultation and confirmation with the service terminal, the target language and target character set are obtained. The service terminal uses the target language and the target character set to assign values to the target client's registered language and registered character value, so as to update the target client's registered language and registered character set.
其中,更新,是指目标客户端首次设置了语言和字符集,并告知了服务终端后,服务 终端也要对目标客户端的登记语言和登记字符集作相应地记录;或者客户端更改了服务终端中记录的登记语言和登记字符集,并告知了服务终端后,服务终端也要对目标客户端的登记语言和登记字符集作相应地修改。Among them, update means that the target client sets the language and character set for the first time, and after notifying the service terminal, the service terminal should also record the target client's registered language and registered character set accordingly; or the client changes the service terminal After registering the language and character set registered in the server, and notifying the service terminal, the service terminal should also modify the registration language and character set of the target client accordingly.
在本实施例中,目标客户端用户设置或更改了选用的语言和字符集后,目标客户端会发送第一选用指令与服务终端进行协商;当服务终端接收到目标客户端发送的第一选用指令,确定目标客户端选用的目标语言和目标字符集后;服务终端通过利用目标客户端选用的目标语言和目标字符集,对目标客户端的登记语言和登记字符集进行赋值更新;采用经过协商后的登记语言和登记字符集,下发RCS公众消息,使得服务终端的登记语言和登记字符集满足了目标客户端用户的语言需求、以及支持客户端的本地环境,避免了登记语言和登记字符集不符合目标客户端用户的语言需求、或不支持客户端的本地环境。In this embodiment, after the user of the target client sets or changes the selected language and character set, the target client will send a first option instruction to negotiate with the service terminal; when the service terminal receives the first option sent by the target client Instruction to determine the target language and target character set selected by the target client; the service terminal uses the target language and target character set selected by the target client to update the registered language and registered character set of the target client; after negotiation Registered language and registered character set, and issued RCS public messages, so that the registered language and registered character set of the service terminal meet the language requirements of the target client user and the local environment supporting the client, avoiding the registration language and registered character set Meet the language requirements of the target client user, or the local environment that does not support the client.
在一实施方式中,第一选用指令包括:获取客户端首次设置语言反馈的指令作为第一选用指令;或者获取客户端更改语言反馈的指令作为第一选用指令。In one embodiment, the first optional instruction includes: obtaining an instruction for the client to set language feedback for the first time as the first optional instruction; or obtaining an instruction for the client to change the language feedback as the first optional instruction.
客户端用户对手机系统本身语言或客户端语言进行设置后,客户端读取客户端的语言设置或手机系统本身语言设置,并且客户端上线时,发送反馈给服务终端;服务终端首次获取到客户端读取设置语言反馈的指令,作为第一选用指令。After the client user sets the language of the mobile phone system itself or the client language, the client reads the language setting of the client or the language setting of the mobile phone system itself, and sends feedback to the service terminal when the client goes online; the service terminal obtains the client for the first time Read the command for setting language feedback as the first optional command.
或者,or,
客户端用户对手机系统本身语言或客户端语言进行更改后,客户端读取客户端的语言更改或手机系统本身语言更改,并且客户端上线时,发送反馈给服务终端;服务终端获取到客户端读取更改语言反馈的指令。After the client user changes the language of the mobile phone system itself or the client language, the client reads the language change of the client or the language of the mobile phone system itself, and when the client goes online, it sends feedback to the service terminal; the service terminal obtains the client to read Take the instruction to change the language feedback.
其中,首次设置语言反馈的指令,是指用户在手机上首次安装了RCS应用的客户端后,用户对客户端的语言进行了设置,或者用户没有对客户端的语言进行设置、但是存在手机系统本身语言;则客户端读取客户端的语言设置或手机系统本身语言设置,并在客户端上线后,发送反馈给服务终端的指令。更改语言反馈的指令,是指用户对客户端的语言进行了更改,或者用户没有对客户端的语言进行设置、但是对手机系统本身语言进行了更改;则客户端读取客户端的语言更改或手机系统本身语言更改,并在客户端上线后,发送反馈给服务终端的指令。Among them, the instruction to set language feedback for the first time means that after the user first installs the client of the RCS application on the mobile phone, the user sets the language of the client, or the user does not set the language of the client, but the language of the mobile phone system exists ; The client reads the language setting of the client or the language setting of the mobile phone system itself, and sends instructions to the service terminal after the client goes online. The instruction to change the language feedback means that the user has changed the language of the client, or the user has not set the language of the client, but has changed the language of the mobile phone system; the client reads the language change of the client or the mobile phone system itself After the language changes, and the client goes online, it sends instructions to the service terminal.
这里需要说明的是,如果存在手机系统本身语言,用户又对客户端的语言进行了设置或更改,那么优先读取客户端设置或更改的语言,即客户端的语言设置或更改优先级大于手机系统本身语言设置或更改。It should be noted here that if the language of the mobile phone system exists, and the user sets or changes the language of the client, then the language set or changed by the client is read first, that is, the language setting or change priority of the client is greater than the mobile phone system itself Language setting or change.
为了方便理解,举例进行说明;例如,手机终端首次安装RCS应用的客户端,客户 端读取手机系统本身的语言设置;然后客户端上线时采用手机系统本身设置的语言和手机本身支持的字符集,与服务终端进行协商,确定协商后的语言和字符集,服务终端采用协商后的语言和字符集下发RCS公众消息给客户端。如果安装了RCS应用的客户端后,用户在手机系统本身的语言设置,更改了手机系统本身的语言,那么客户端读取更改后手机系统本身的语言设置;然后客户端上线时采用手机系统本身设置的语言和手机本身支持的字符集,与服务终端进行协商,确定协商后的语言和字符集,服务终端采用协商后的语言和字符集下发RCS公众消息给客户端。如果安装了RCS应用的客户端后,用户在客户端的语言设置,更改了语言,那么客户端读取更改后客户端的语言设置;然后客户端上线时采用客户端设置的语言和支持的字符集,与服务终端进行协商,确定协商后的语言和字符集,服务终端采用协商后的语言和字符集下发RCS公众消息给客户端。For ease of understanding, an example will be used to illustrate; for example, the client of the mobile terminal installs the RCS application for the first time, the client reads the language setting of the mobile phone system itself; then the client uses the language set by the mobile phone system itself and the character set supported by the mobile phone when the client goes online , Negotiate with the service terminal to determine the negotiated language and character set. The service terminal uses the negotiated language and character set to deliver RCS public messages to the client. If after installing the client of the RCS application, the user changes the language of the mobile phone system itself in the language setting of the mobile phone system, then the client reads the language setting of the mobile phone system after the change; then the mobile phone system itself is used when the client goes online The set language and the character set supported by the mobile phone itself are negotiated with the service terminal to determine the negotiated language and character set. The service terminal uses the negotiated language and character set to deliver RCS public messages to the client. If after installing the client of the RCS application, the user changes the language in the client's language setting, then the client reads the changed client's language setting; then the client uses the language set by the client and the supported character set when going online. Negotiate with the service terminal to determine the negotiated language and character set. The service terminal uses the negotiated language and character set to deliver RCS public messages to the client.
在本实施例中,可以采用客户端首次设置语言反馈的指令作为第一选用指令,同时也可以采用客户端更改语言反馈的指令作为第一选用指令;避免了服务终端登记语言和登记字符集只能进行一次记录,而客户端用户若更改语言后,服务终端登记语言和登记字符集不能进行修改,导致不能满足同一客户端用户的不同需求;使得客户端用户可以多次设置更改语言,接收不同语言的RCS公众消息,满足了客户端用户更多的显示要求。In this embodiment, the instruction for setting the language feedback by the client for the first time may be used as the first optional instruction, and the instruction for changing the language feedback by the client may also be used as the first optional instruction; It can record once, and if the client user changes the language, the service terminal registration language and registration character set cannot be modified, which can not meet the different needs of the same client user; so that the client user can set the change language multiple times and receive different The RCS public message in language meets more display requirements of client users.
在一实施方式中,步骤S50包括:In one embodiment, step S50 includes:
步骤A1,根据第一选用指令,获取目标客户端发送的第一确认指令;Step A1: Acquire the first confirmation instruction sent by the target client according to the first selection instruction;
参照图4中,第一步,目标客户端发送了第一选用指令给服务终端,告诉终端服务器其想要选用的语言和字符集;第二步,服务终端经过确认,从目标客户端想要选用的语言和字符集中,选择服务终端支持的语言和字符集,并将服务终端选择的语言和字符集通过指令告知目标客户端;第三步,目标客户端接收到服务终端指令后,知道目标客户端想要选用的语言和字符集中被服务终端支持的语言和字符集,经过确认发送第一确认指令给服务终端。Referring to FIG. 4, in the first step, the target client sends a first selection instruction to the service terminal, telling the terminal server which language and character set it wants to select; in the second step, the service terminal confirms and wants from the target client The selected language and character set, select the language and character set supported by the service terminal, and inform the target client of the language and character set selected by the service terminal through instructions; the third step, the target client knows the target after receiving the service terminal instruction The language and character set that the client wants to select is the language and character set supported by the service terminal, and after confirmation, sends a first confirmation instruction to the service terminal.
其中,第一确认指令,是指目标客户端知道目标客户端想要选用的语言和字符集中,被服务终端支持的语言和字符集;服务终端可以采用目标客户端想要选用的语言和字符集中服务终端支持的语言和字符集,作为下发RCS公众消息的语言和字符集;目标客户端经过确认同意后,向服务终端发送指令告诉服务终端已确认;此时,目标客户端发送的指令就是第一确认指令。Among them, the first confirmation instruction means that the target client knows the language and character set that the target client wants to choose, and the language and character set supported by the service terminal; the service terminal can adopt the language and character set that the target client wants to choose The language and character set supported by the service terminal are used as the language and character set for delivering RCS public messages; after the confirmation of the target client, the target client sends an instruction to the service terminal to tell the service terminal that the confirmation has been made; at this time, the command sent by the target client is The first confirmation instruction.
这里需要说明的是,客户端想要选用的语言和字符集可以是一种语言、一种字符集,也可以是多种语言、多种字符集,或者是一种语言、多种字符集,多种语言、多种字符集。It should be noted here that the language and character set that the client wants to choose can be one language, one character set, multiple languages, multiple character sets, or one language, multiple character sets, Multiple languages and multiple character sets.
步骤A2,根据第一确认指令,向目标客户端发送第二确认指令;Step A2: Send a second confirmation instruction to the target client according to the first confirmation instruction;
参照图4中,第三步,服务终端接收到目标客户端的第一确认指令后,知道目标客户端已经同意确认了,选用目标客户端想要选用的语言和字符集中服务终端支持的语言和字符集,作为下发RCS公众消息的语言和字符;此时,服务终端发送第二确认指令给目标客户端。Referring to FIG. 4, in the third step, after receiving the first confirmation instruction from the target client, the service terminal knows that the target client has agreed to confirm, and selects the language and character set supported by the target client. Set, as the language and characters for delivering RCS public messages; at this time, the service terminal sends a second confirmation instruction to the target client.
知道目标客户端发送了第一选用指令给服务终端告知其想要选用的语言和字符集,服务终端已经接受、可以将其作为下发RCS公众消息的语言和字符集,此时,发送第二确认指令给服务终端。Knowing that the target client sent the first selection instruction to the service terminal to inform it of the language and character set it wants to choose, the service terminal has accepted it and can use it as the language and character set for delivering RCS public messages. At this time, the second Confirm the instruction to the service terminal.
其中,第二确认指令,是指服务终端接收到目标客户端发送的第一确认指令后,知道目标客户端已经同意确认了服务终端支持的语言和字符集、并采用目标客户端想要选用且服务终端支持的语言和字符集,下发RCS公众消息;服务终端端进一步确认后,发送指令告诉目标客户端,服务终端此时发送的指令就是第二确认指令。Among them, the second confirmation instruction means that after receiving the first confirmation instruction sent by the target client, the service terminal knows that the target client has agreed to confirm the language and character set supported by the service terminal, and adopts the target client to choose and The language and character set supported by the service terminal are issued RCS public messages; after further confirmation by the service terminal, a command is sent to tell the target client that the command sent by the service terminal at this time is the second confirmation command.
步骤A3,根据第一选用指令和第二确认指令,确定目标客户端选用的目标语言和目标字符集。Step A3: Determine the target language and target character set selected by the target client according to the first selection instruction and the second confirmation instruction.
根据第一选用指令,目标客户端希望选用的语言和字符集中,服务终端接受了服务终端支持的语言和字符集,并发出指令告诉目标客户端;客户端知道后被服务终端支持的语言和字符集后,发出第一确认指令,服务终端根据第一确认指令也发出第二确认指令后,服务终端将目标客户端想要选用的、且服务终端支持的语言和字符集作为目标语言和目标字符集。According to the first selection instruction, the target client wishes to select the language and character set, the service terminal accepts the language and character set supported by the service terminal, and issues an instruction to tell the target client; after the client knows the language and characters supported by the service terminal After the set, the first confirmation instruction is issued, and after the service terminal also issues the second confirmation instruction according to the first confirmation instruction, the service terminal uses the language and character set that the target client wants to select and supports by the service terminal as the target language and target character set.
在本实施例中,通过目标客户端发送了第一选用指令给服务终端,告诉终端服务器其想要选用的语言和字符集,服务终端经过确认确定支持目标客户端想要选用的语言和字符集,并发出指令告诉目标客户端;客户端知道后被服务终端支持的语言和字符集后,发送第一确认指令给服务终端;服务终端端接收到第一确认指令后经进一步确认,向目标客户端发送了第二确认指令;最后服务终端才确定,将目标客户端想要选用的、且服务终端支持的语言和字符,作为下发RCS公众消息的目标语言和目标字符集;避免了服务终端下发的RCS公众消息因语言或字符集不适配,在客户端的本地环境不适配,导致在客户端时显示乱码或无法显示,或者显示的语言用户无法读懂,从而使得客户端用户不能正常识别RCS公众消息;使得经过协商后,客户端可以采用用户选用的语言作为RCS公众消息显示的语言,并使得RCS公众消息的格式能适应客户端的本地环境。In this embodiment, the target client sends the first selection instruction to the service terminal, telling the terminal server which language and character set it wants to select, and the service terminal confirms that it supports the language and character set that the target client wants to select , And issue an instruction to tell the target client; after the client knows the language and character set supported by the service terminal, it sends a first confirmation command to the service terminal; after receiving the first confirmation command, the service terminal terminal further confirms it and sends it to the target client The terminal sends a second confirmation instruction; finally the service terminal determines that the language and characters that the target client wants to choose and that the service terminal supports are used as the target language and target character set for sending RCS public messages; the service terminal is avoided RCS public messages issued due to language or character set mismatch, and the local environment of the client are not adapted, resulting in garbled characters or cannot be displayed on the client, or the displayed language cannot be read by the user, so that the client user cannot Recognize RCS public messages normally; so that after negotiation, the client can use the user-selected RCS public speech as the language messages are displayed, and makes public message format RCS can adapt to the client's local environment.
在本公开RCS公众消息处理方法第三实施例中,基于上述图2所示的实施例,步骤S50包括:In the third embodiment of the RCS public message processing method of the present disclosure, based on the embodiment shown in FIG. 2 above, step S50 includes:
步骤B1,根据第一选用指令,发送支持的语言和字符集列表给目标客户端;Step B1, according to the first selection instruction, send a list of supported languages and character sets to the target client;
参照图5,第一步,目标客户端发送了第一选用指令给服务终端,告诉终端服务器其想要选用的语言和字符集;第二步,服务终端经过确认,服务终端不支持目标客户端想要选用的语言和字符集,此时,发送服务终端支持的语言和字符集列表给目标客户。Referring to FIG. 5, in the first step, the target client sends a first selection instruction to the service terminal, telling the terminal server which language and character set it wants to select; in the second step, the service terminal confirms that the service terminal does not support the target client Want to choose the language and character set, at this time, send a list of languages and character sets supported by the service terminal to the target customer.
其中,支持的语言和字符集列表,是指服务终端支持的语言的形式和字符集的形式,服务终端支持采用这种些形式下发RCS公众消息;服务终端支持的语言和字符集的所有形式,就是服务终端支持的语言和字符集列表。这里所说的形式是指具体的语言或者具体字符集,例如,语言的形式有中文、英文、德语、日语、韩语,字符集的形式有CP936编码、GB2312编码、Unicode编码;服务终端支持的语言和字符集列表就包括:语言,中文、英文、德语、日语、韩语,字符集,CP936编码、GB2312编码、Unicode编码。Among them, the list of supported languages and character sets refers to the forms of languages and character sets supported by the service terminal. The service terminal supports the delivery of RCS public messages in these forms; all forms of languages and character sets supported by the service terminal , Is a list of languages and character sets supported by the service terminal. The form mentioned here refers to a specific language or a specific character set. For example, the form of the language is Chinese, English, German, Japanese, Korean, and the form of the character set is CP936 encoding, GB2312 encoding, Unicode encoding; the language supported by the service terminal And the character set list includes: language, Chinese, English, German, Japanese, Korean, character set, CP936 encoding, GB2312 encoding, Unicode encoding.
这里需要说明的是,客户端想要选用的语言和字符集可以是一种语言、一种字符集,也可以是多种语言、多种字符集,或者是一种语言、多种字符集,多种语言、多种字符集。It should be noted here that the language and character set that the client wants to choose can be one language, one character set, multiple languages, multiple character sets, or one language, multiple character sets, Multiple languages and multiple character sets.
步骤B2,获取目标客户端基于语言和字符集列表反馈的第二选用指令;Step B2: Obtain the second optional instruction fed back by the target client based on the language and character set list;
参照图5,第三步,目标客户端接收到服务终端支持的语言和字符集列表后,知道服务终端没有接受其想要选用的语言和字符集服务终端,并在服务终端支持的语言和字符集列表中,再次选择了希望的语言和字符集;此时,发送第二选用指令给服务终端,告诉服务终端其再次选择的语言和字符集。Referring to FIG. 5, in the third step, after receiving the list of languages and character sets supported by the service terminal, the target client knows that the service terminal has not accepted the language and character set that the service terminal wants to select, and the language and characters supported by the service terminal In the set list, the desired language and character set are selected again; at this time, a second selection instruction is sent to the service terminal to tell the service terminal of the language and character set it has selected again.
其中,第二选用指令,是指在服务终端支持的语言和字符集列表中,目标客户端再次选择了希望的语言和字符集,并发送指令告诉服务终端客户端进一步希望的语言和字符集,客户端此时发送的指令就是第二选用指令。Among them, the second optional instruction means that in the list of languages and character sets supported by the service terminal, the target client selects the desired language and character set again, and sends an instruction to tell the service terminal client to further desire the language and character set, The command sent by the client at this time is the second optional command.
这里需要说明的是,客户端再次选择的语言和字符集可以是一种语言、一种字符集,也可以是多种语言、多种字符集,或者是一种语言、多种字符集,多种语言、多种字符集。It should be noted here that the language and character set selected by the client again can be one language, one character set, multiple languages, multiple character sets, or one language, multiple character sets, multiple Multiple languages and multiple character sets.
步骤B3,根据第二选用指令,返回第一成功指令;Step B3, according to the second optional instruction, return the first successful instruction;
参照图5,第四步,服务终端经过确认,服务终端接受了支持目标客户端再次选用的语言和字符集,此时,发送第一成功指令给目标客户端,告诉目标客户已经接受再次选择的语言和字符集,作为下发RCS公众消息的语言和字符集。Referring to FIG. 5, in the fourth step, after confirmation by the service terminal, the service terminal accepts the language and character set supported by the target client again. At this time, the first successful command is sent to the target client to tell the target client that it has accepted the reselection Language and character set, as the language and character set for delivering RCS public messages.
其中,第一成功指令,是指服务终端接收到目标客户端发送的第二选用指令后,同意 了目标客户端再次选择的语言和字符集、可以将其作为下发RCS公众消息的语言和字符集,并发送指令告诉目标客户端,服务终端此时发送的指令就是第一成功指令。Among them, the first successful instruction means that after receiving the second optional instruction sent by the target client, the service terminal agrees to the language and character set selected by the target client again, and can use it as the language and character for delivering RCS public messages Set and send an instruction to tell the target client that the instruction sent by the server at this time is the first successful instruction.
步骤B4,获取目标客户端基于第一成功指令反馈的第二成功指令;Step B4: Obtain a second successful instruction fed back by the target client based on the first successful instruction;
参照图5,第五步,目标客户端接收到服务终端的第一成功指令后,知道目标客户端发送了第二选用指令给服务终端告知其再次选择的语言和字符集,服务终端已经接受、可以将其作为下发RCS公众消息的语言和字符集,此时,发送第二成功指令给服务终端。Referring to FIG. 5, in the fifth step, after receiving the first successful command from the service terminal, the target client knows that the target client sends the second optional command to the service terminal to inform it of the language and character set selected again. The service terminal has accepted, It can be used as the language and character set for delivering RCS public messages. At this time, the second successful command is sent to the service terminal.
其中,第二成功指令,是指目标客户端接收到服务终端发送的第一成功指令后,目标客户端知道其再次选择的语言和字符集服务终端已经接受、可以将其作为下发RCS公众消息的语言和字符集,目标客户端进一步同意确认,并发送指令告诉服务终端,目标客户端此时发送的指令就是第二成功指令。Among them, the second successful instruction means that after the target client receives the first successful instruction sent by the service terminal, the target client knows that the language and character set it has selected again has been accepted by the service terminal and can be used as an RCS public message. For the language and character set of the target, the target client further agrees to confirm and sends an instruction to tell the service terminal that the command sent by the target client at this time is the second successful command.
步骤B5,根据第二选用指令和第二成功指令,确定目标客户端选用的目标语言和目标字符集。Step B5: Determine the target language and target character set selected by the target client according to the second selection instruction and the second success instruction.
根据第二选用指令,服务终端接受了目标客户端再次选择的语言和字符集并发出第一成功指令,目标客户端根据第一成功指令也发出第二成功指令后,服务终端将目标客户端再次选择希望的语言和字符集作为目标语言和字符集。According to the second selection instruction, the service terminal accepts the language and character set selected by the target client again and issues a first success instruction. After the target client also issues the second success instruction according to the first success instruction, the service terminal changes the target client again. Select the desired language and character set as the target language and character set.
在本实施例中,目标客户端发送了第一选用指令给服务终端,告诉终端服务器其想要选用的语言和字符集,服务终端经过确认不支持目标客户端想要选用的语言和字符集;并发送服务终端支持的语言和字符集列表给客户端,客户端从列表中再次选择了希望的语言和字符集。服务终端根据客户端从列表中再次选择的语言和字符集,发送第一成功指令给目标客户端;客户端接收到第一成功指令后经进一步确认,向服务终端发送了第二成功指令,最后服务终端才确定将目标客户端再次选择希望的语言和字符,作为下发RCS公众消息的目标语言和目标字符集。避免了服务终端下发的RCS公众消息因语言或字符集不适配,在客户端的本地环境不适配,导致在客户端时显示乱码或无法显示,或者显示的语言用户无法读懂,从而使得客户端用户不能正常识别RCS公众消息;经过协商后,客户端最想要选用的语言和字符集不支持后,又再次选择希望的语言和字符集作为目标语言和目标字符集,使得客户端可以采用更贴近用户想要的语言作为RCS公众消息显示的语言,并使得RCS公众消息的格式能适应客户端的本地环境。In this embodiment, the target client sends a first selection instruction to the service terminal, telling the terminal server which language and character set it wants to select, and the service terminal confirms that it does not support the language and character set the target client wants to select; And send the list of languages and character sets supported by the service terminal to the client, and the client selects the desired language and character set from the list again. The service terminal sends the first successful command to the target client according to the language and character set selected by the client again from the list; after the client receives the first successful command and further confirms, the second successful command is sent to the service terminal, and finally The service terminal determines that the target client selects the desired language and character again as the target language and target character set for delivering RCS public messages. It avoids that the RCS public messages delivered by the service terminal are not adapted to the language or character set, and are not adapted to the local environment of the client, resulting in garbled characters or cannot be displayed on the client, or the displayed language cannot be read by the user, which makes The client user cannot normally recognize the RCS public message; after negotiation, after the client's most preferred language and character set are not supported, the desired language and character set are selected again as the target language and target character set, so that the client can Use the language that is closer to the user's desire as the language for RCS public message display, and make the format of the RCS public message adapt to the local environment of the client.
在一实施方式中,步骤S50包括:In one embodiment, step S50 includes:
步骤C1,根据第一选用指令,发送支持的语言和字符集列表给目标客户端;Step C1, according to the first selection instruction, send a list of supported languages and character sets to the target client;
参照图6,第一步,目标客户端发送了第一选用指令给服务终端,告诉终端服务器其想要选用的语言和字符集;第二步,服务终端经过确认,服务终端不支持目标客户端想要选用的语言和字符集,此时,发送服务终端支持的语言和字符集列表给目标客户。Referring to FIG. 6, in the first step, the target client sends a first selection instruction to the service terminal, telling the terminal server which language and character set it wants to select; in the second step, the service terminal confirms that the service terminal does not support the target client Want to choose the language and character set, at this time, send a list of languages and character sets supported by the service terminal to the target customer.
这里需要说明的是,客户端想要选用的语言和字符集可以是一种语言、一种字符集,也可以是多种语言、多种字符集,或者是一种语言、多种字符集,多种语言、多种字符集。It should be noted here that the language and character set that the client wants to choose can be one language, one character set, multiple languages, multiple character sets, or one language, multiple character sets, Multiple languages and multiple character sets.
步骤C2,获取目标客户端基于语言和字符集列表反馈的第一失败指令;Step C2: Obtain the first failed instruction fed back by the target client based on the language and character set list;
参照图6,第三步,目标客户端接收到服务终端支持的语言和字符集列表后,知道服务终端没有接受其想要选用的语言和字符集服务终端,目标客户端没有在服务终端支持的语言和字符集列表中作出选择;并发送了第一失败指令给服务终端,告诉服务终端其没有选择任何的语言和字符集。Referring to FIG. 6, in the third step, after receiving the list of languages and character sets supported by the service terminal, the target client knows that the service terminal has not accepted the language and character set service terminal it wants to select, and the target client does not support the service terminal Make a selection in the language and character set list; and send the first failure instruction to the service terminal, telling the service terminal that it has not selected any language and character set.
其中,第一失败指令,是指目标客户端接收到服务终端支持的语言和字符集列表后,没有再次选用希望的语言和字符集,并且发送指令告诉服务终端其没有再次选用语言和字符集,此时,目标客户端发送的指令就是第一失败指令。Among them, the first failure instruction refers to that the target client does not select the desired language and character set again after receiving the list of languages and character sets supported by the service terminal, and sends an instruction to tell the service terminal that it has not selected the language and character set again. At this time, the instruction sent by the target client is the first failed instruction.
步骤C3,根据第一失败指令,下发第二失败指令给目标客户端;Step C3: According to the first failure instruction, issue a second failure instruction to the target client;
参照图6,第四步,服务终端接收到目标客户端的第一失败指令后,知道目标客户端没有从服务终端支持的语言和字符集列表再次选择,此时,服务终端发送第二失败指令给目标客户端。Referring to FIG. 6, the fourth step, after receiving the first failure instruction of the target client, the service terminal knows that the target client has not been selected again from the list of languages and character sets supported by the service terminal. At this time, the service terminal sends a second failure instruction to Target client.
其中,第二失败指令,是指服务终端接收到目标客户端的第一失败指令后,知道目标客户端没有从服务终端支持的语言和字符集列表再次选择,不需要再将任何语言和字符集作为目标客户端选用的目标语言和目标字符集;并发送指令告诉服务终端已经确认目标客户端不选用任何语言和字符集,此时,服务终端发送的指令就是第二失败指令。Among them, the second failure instruction means that after receiving the first failure instruction of the target client, the service terminal knows that the target client has not selected again from the list of languages and character sets supported by the service terminal, and does not need to use any language and character set as The target language and target character set selected by the target client; and send an instruction to tell the service terminal that it has confirmed that the target client does not select any language and character set. At this time, the command sent by the service terminal is the second failed command.
步骤C4,确定目标客户端选用的目标语言和目标字符集。Step C4: Determine the target language and target character set selected by the target client.
服务终端接收到目标客户端的第一失败指令后,知道目标客户端没有从服务终端支持的语言和字符集列表再次选择;而目标客户端想要选用的语言和字符集,服务终端又不支持,目标客户端也不希望采用服务终端提供的任何语言和字符集;所以,通过协商服务终端确定不采用任何语言和字符集作为目标客户端的登记语言和登记字符集,在下发RCS公众消息时,也不再给该目标客户端下发。After receiving the first failure instruction from the target client, the service terminal knows that the target client has not reselected from the list of languages and character sets supported by the service terminal; but the language and character set that the target client wants to choose is not supported by the service terminal. The target client also does not want to use any language and character set provided by the service terminal; therefore, by negotiating the service terminal to determine not to use any language and character set as the target client ’s registered language and registered character set, when issuing RCS public messages, No longer deliver to the target client.
在本实施例中,通过服务终端与目标客户端的协商,目标客户端发送第一选用指令告知服务终端,目标客户端想要选用的语言和字符集。如果服务终端中目标客户端想要选用 的语言和字符集不存在、并且目标客户端也不再选择服务终端支持的语言与字符集,服务终端最终确定不采用任何语言和字符集作为目标客户端的登记语言和登记字符集;服务终端在下发RCS公众消息时,也不再给该目标客户端下发;避免了RCS公众消息下发给目标客户端后,目标客户端本地环境不支持而出现乱码或无法正常显示,用户也无法正常地读取识别,避免了无效的下发,节省了服务终端的资源。In this embodiment, through negotiation between the service terminal and the target client, the target client sends a first selection instruction to inform the service terminal that the target client wants to select the language and character set. If the language and character set that the target client wants to use in the service terminal do not exist, and the target client no longer selects the language and character set supported by the service terminal, the service terminal finally determines not to use any language and character set as the target client ’s Register the language and register the character set; when the service terminal sends RCS public messages, it will no longer send the target client; after the RCS public message is sent to the target client, the target client local environment is not supported and garbled characters appear Or it cannot be displayed normally, and the user cannot read the identification normally, which avoids invalid delivery and saves resources of the service terminal.
在本公开RCS公众消息处理方法第四实施例中,基于上述图2所示的实施例,RCS公众消息处理方法还包括:In the fourth embodiment of the RCS public message processing method of the present disclosure, based on the embodiment shown in FIG. 2 above, the RCS public message processing method further includes:
S70,向客户端发送语言和字符集选择的获取指令;S70, sending an acquisition instruction of language and character set selection to the client;
如果服务终端没有接收客户端选择语言和字符集的请求,那么服务终端向客户端发送获取指令,提醒选择客户端发送语言和字符集,并向客户端获取希望选用的语言和字符集。If the service terminal does not receive the client's request to select the language and character set, the service terminal sends an acquisition instruction to the client, reminds the client to select the language and character set, and obtains the desired language and character set from the client.
其中,获取指令,是指服务终端向客户端发送请求,让客户端选择希望选用的语言和字符集,服务终端发送向客户端发送的请求,就是获取指令。Among them, the acquisition instruction refers to the service terminal sending a request to the client, allowing the client to select the language and character set it wants to choose, and the request sent by the service terminal to the client is the acquisition instruction.
S80,若在预设时长内,没有接收到客户端基于获取指令的反馈,则获取客户端的客户标识;S80, if no feedback is received from the client based on the acquisition instruction within the preset duration, the client's client identification is acquired;
服务终端向客户端发送了获取指令后,如果在预设时长内,客户端都没有反馈的任何指令,服务终端也没有接收到反馈指令,服务终端并不知道客户端希望选用的语言和字符集;则获取客户端的客户标识。如果接收到客户端基于获取指令的反馈,则可以采用第二实施例和第三实施例中的提到的方式,服务终端与客户端进行协商,确定客户端的登记语言和登记字符集。After the service terminal sends the acquisition instruction to the client, if the client does not feedback any instruction within the preset time, the service terminal does not receive the feedback instruction, and the service terminal does not know the language and character set the client wishes to choose ; Get the client's customer ID. If the client receives feedback based on the acquisition instruction, the service terminal may negotiate with the client to determine the client's registration language and registration character set in the manner mentioned in the second and third embodiments.
其中,客户标识,是指能区分不同客户端的识别标志,通过识别标志可以确定具体客户端;比如,可以是身份标识号、账号、唯一编码、专属号码等等。客户端基于获取指令的反馈,是指客户端接收到服务终端的获取指令后,作出语言和字符集选择并告知服务终端、或者不选择语言和字符集并告知服务终端。Among them, the client ID refers to an identification mark that can distinguish different clients, and the specific client can be determined by the identification mark; for example, it can be an identification number, account number, unique code, exclusive number, and so on. The client's feedback based on the acquisition instruction means that after receiving the acquisition instruction of the service terminal, the client makes a language and character set selection and informs the service terminal, or does not select the language and character set and informs the service terminal.
S90,根据客户标识与默认语言和默认字符集,对客户端的登记语言和登记字符集进行更新。S90: Update the registered language and registered character set of the client according to the customer identification, default language and default character set.
服务终端将客户端的客户标识与默认语言和默认字符集关联起来,利用默认语言和默认字符集赋值给对应客户标识的客户端的登记语言和登记字符集,实现客户端的登记语言和登记字符集的更新。The service terminal associates the client's client ID with the default language and default character set, and assigns the default language and default character set to the client's registered language and registered character set corresponding to the client's ID to realize the update of the client's registered language and registered character set .
其中,默认语言和默认字符集,是指服务终端设定的下发RCS公众消息时默认采用的语言和字符集。更新,是指服务终端向客户端发送获取指令后,客户端没有反馈时,服务终端采用默认语言和默认字符集,对客户端的登记语言和登记字符集进行赋值。Among them, the default language and default character set refer to the language and character set used by default when sending RCS public messages set by the service terminal. Update means that after the service terminal sends an acquisition instruction to the client and the client has no feedback, the service terminal uses the default language and default character set to assign values to the client's registered language and registered character set.
在本实施例中,如果服务终端没有接收客户端选择语言和字符集的请求,那么服务终端向客户端发送获取指令,如果在预设时长内没有接收到客户端基于获取指令的反馈,则采用服务终端的默认语言和默认字符集对客户端的登记语言和登记字符集进行更新;并在给没有反馈的客户端下发RCS公众消息,采用默认语言和默认字符集;避免了客户端希望可以接收到RCS公众消息,但又由于各种原因没有给服务终端反馈,而无法接收到RCS公众消息;使得客户端用户在使用过程中,可以接收到RCS公众消息,并发现是否正常显示、或是否符合用户需求,再根据用户的需求进行语言和字符集进行设置或更改。In this embodiment, if the service terminal does not receive the client's request to select the language and character set, the service terminal sends an acquisition instruction to the client. If the client does not receive feedback based on the acquisition instruction within a preset time period, it adopts The default language and default character set of the service terminal update the registered language and registered character set of the client; and send RCS public messages to the client without feedback, using the default language and default character set; avoiding the client's desire to receive To the RCS public message, but due to various reasons did not give feedback to the service terminal, and could not receive the RCS public message; so that the client user can receive the RCS public message during use and find out whether it is displayed normally or in compliance User needs, and then set or change the language and character set according to user needs.
此外,本公开实施例还提出一种计算机可读存储介质,计算机可读存储介质上存储有RCS公众消息处理程序,RCS公众消息处理程序被处理器执行时实现如上所述的RCS公众消息处理方法的步骤。In addition, an embodiment of the present disclosure also proposes a computer-readable storage medium having an RCS public message processing program stored on the computer-readable storage medium. The RCS public message processing program is executed by the processor to implement the RCS public message processing method as described above A step of.
本公开计算机可读存储介质具体实施方式可以参照上述RCS公众消息处理方法各实施例,在此不再赘述。For the specific implementation of the computer-readable storage medium of the present disclosure, reference may be made to the foregoing embodiments of the RCS public message processing method, and details are not described herein again.
本公开实施例提出的一种RCS公众消息处理方法、移动终端及存储介质,通过与各个客户端进行协商确认,对各个客户端的登记语言和登记字符集进行更新;获取各个客户端当前使用的各个登记语言和登记字符集;根据各个登记语言和登记字符集,将待发送的RCS公众消息分别转换为与各个客户端适配的各个兼容公众消息,并将各个兼容公众消息分别发送给适配的各个客户端;使得下发RCS公众消息时,各个不同的客户端接收同一公众内容,分别通过适配客户端的语言和字符集进行获取并显示;针对不同客户端使用的是不同的语言和字符集,将在下发RCS公众消息时采用的统一固定的语言和字符集,分别转换成适配各个客户端的语言和字符集;避免了采用统一固定的语言和字符集,有的客户端接收RCS公众消息时出现不适配,出现乱码或无法显示,或者显示的是客户端用户看不懂的语言;使得用户能正常识别RCS公众消息。An RCS public message processing method, mobile terminal and storage medium proposed in the embodiments of the present disclosure, through consultation and confirmation with each client, update the registration language and registration character set of each client; obtain the current use of each client Registration language and registration character set; according to each registration language and registration character set, the RCS public message to be sent is converted into each compatible public message adapted to each client, and each compatible public message is sent to the adapted Each client; so that when sending RCS public messages, each different client receives the same public content, which is obtained and displayed by adapting the client's language and character set; different languages and character sets are used for different clients , Convert the unified and fixed language and character set used in the delivery of RCS public messages into the language and character set suitable for each client; avoid the use of a unified fixed language and character set, and some clients receive RCS public messages When there is a mismatch, garbled or unable to display, or display The client can not read the language of the user; RCS enables the user to properly identify the public message.
本公开实施例提出的一种RCS公众消息处理方法、移动终端及存储介质,使得在接收RCS公众消息时,各个不同的客户端接收同一公众内容,分别通过适配客户端的语言和字符集进行获取并显示,满足了用户的用语习惯,使得用户能正常识别RCS公众消息。An RCS public message processing method, mobile terminal, and storage medium proposed in embodiments of the present disclosure, so that when receiving RCS public messages, different clients receive the same public content, which is obtained by adapting the client's language and character set, respectively It also shows that the user's language habits are satisfied, so that the user can normally recognize the RCS public message.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者系统不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者系统中还存在另外的相同要素。It should be noted that in this article, the terms "include", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system that includes a series of elements includes not only those elements, It also includes other elements that are not explicitly listed, or include elements inherent to this process, method, article, or system. Without more restrictions, the element defined by the sentence "include one ..." does not exclude that there are other identical elements in the process, method, article or system that includes the element.
上述本公开实施例序号仅仅为了描述,不代表实施例的优劣。The sequence numbers of the above-mentioned embodiments of the present disclosure are only for description, and do not represent the advantages and disadvantages of the embodiments.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本公开的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在如上所述的一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本公开各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods in the above embodiments can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware, but in many cases the former is better Implementation. Based on such an understanding, the technical solution of the present disclosure can be embodied in the form of a software product in essence or a part that contributes to the existing technology, and the computer software product is stored in a storage medium (such as ROM / RAM) , Magnetic disks, optical disks), including several instructions to enable a terminal device (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to perform the methods described in various embodiments of the present disclosure.
以上仅为本公开的优选实施例,并非因此限制本公开的专利范围,凡是利用本公开说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本公开的专利保护范围内。The above are only the preferred embodiments of the present disclosure and do not limit the patent scope of the present disclosure. Any equivalent structure or equivalent process transformation made by using the contents of the specification and drawings of the present disclosure, or directly or indirectly used in other related technical fields , The same reason is included in the scope of patent protection of this disclosure.

Claims (10)

  1. 一种融合通信RCS公众消息处理方法,其中,所述RCS公众消息处理方法包括:An integrated communication RCS public message processing method, wherein the RCS public message processing method includes:
    获取各个客户端当前使用的各个登记语言和登记字符集;Obtain the registered languages and registered character sets currently used by the clients;
    根据各个登记语言和登记字符集,将待发送的RCS公众消息分别转换为与各个客户端适配的各个兼容公众消息;According to each registered language and registered character set, convert the RCS public message to be sent into each compatible public message adapted to each client;
    将各个兼容公众消息分别发送给适配的各个客户端。Send each compatible public message to each client that is adapted.
  2. 如权利要求1所述的RCS公众消息处理方法,其中,所述RCS公众消息处理方法还包括:The RCS public message processing method of claim 1, wherein the RCS public message processing method further comprises:
    当接收到所述客户端发送的第一选用指令;When receiving the first optional instruction sent by the client;
    根据所述第一选用指令,确定发送所述第一选用指令的目标客户端选用的目标语言和目标字符集;Determine the target language and target character set selected by the target client sending the first optional instruction according to the first optional instruction;
    根据所述目标语言和目标字符集,对所述目标客户端的登记语言和登记字符集进行更新。According to the target language and the target character set, the registered language and the registered character set of the target client are updated.
  3. 如权利要求2所述的RCS公众消息处理方法,其中,所述根据所述第一选用指令,确定发送所述第一选用指令的目标客户端选用的目标语言和目标字符集的步骤包括:The RCS public message processing method according to claim 2, wherein the step of determining the target language and target character set selected by the target client sending the first optional instruction according to the first optional instruction includes:
    根据所述第一选用指令,获取所述目标客户端发送的第一确认指令;Acquiring the first confirmation instruction sent by the target client according to the first selection instruction;
    根据第一确认指令,向所述目标客户端发送第二确认指令;Send a second confirmation instruction to the target client according to the first confirmation instruction;
    根据所述第一选用指令和所述第二确认指令,确定所述目标客户端选用的目标语言和目标字符集。The target language and target character set selected by the target client are determined according to the first selection instruction and the second confirmation instruction.
  4. 如权利要求2所述的RCS公众消息处理方法,其中,所述根据所述第一选用指令,确定发送所述第一选用指令的目标客户端选用的目标语言和目标字符集的步骤包括:The RCS public message processing method according to claim 2, wherein the step of determining the target language and target character set selected by the target client sending the first optional instruction according to the first optional instruction includes:
    根据所述第一选用指令,发送支持的语言和字符集列表给所述目标客户端;Sending a list of supported languages and character sets to the target client according to the first optional instruction;
    获取所述目标客户端基于所述语言和字符集列表反馈的第二选用指令;Acquiring a second optional instruction fed back by the target client based on the language and character set list;
    根据所述第二选用指令,返回第一成功指令;Return the first successful instruction according to the second optional instruction;
    获取所述目标客户端基于第一成功指令反馈的第二成功指令;Acquiring a second successful instruction fed back by the target client based on the first successful instruction;
    根据所述第二选用指令和所述第二成功指令,确定所述目标客户端选用的目标语言和目标字符集。The target language and target character set selected by the target client are determined according to the second selection instruction and the second success instruction.
  5. 如权利要求2所述的RCS公众消息处理方法,其中,所述根据所述第一选用指令,确定发送所述第一选用指令的客户端选用的目标语言和目标字符集的步骤包括:The RCS public message processing method according to claim 2, wherein the step of determining the target language and target character set selected by the client sending the first optional instruction according to the first optional instruction comprises:
    根据所述第一选用指令,发送支持的语言和字符集列表给所述目标客户端;Sending a list of supported languages and character sets to the target client according to the first optional instruction;
    获取所述目标客户端基于所述语言和字符集列表反馈的第一失败指令;Acquiring the first failed instruction fed back by the target client based on the language and character set list;
    根据所述第一失败指令,下发第二失败指令给所述目标客户端;According to the first failure instruction, issue a second failure instruction to the target client;
    确定所述目标客户端选用的目标语言和目标字符集。Determine the target language and target character set selected by the target client.
  6. 如权利要求2所述的RCS公众消息处理方法,其中,所述第一选用指令包括:The RCS public message processing method of claim 2, wherein the first optional instruction comprises:
    获取所述客户端首次设置语言反馈的指令作为第一选用指令;或者Acquiring the instruction for setting the language feedback for the first time by the client as the first optional instruction; or
    获取所述客户端更改语言反馈的指令作为第一选用指令。An instruction to obtain feedback from the client to change the language is obtained as the first optional instruction.
  7. 如权利要求1所述的RCS公众消息处理方法,其中,所述RCS公众消息处理方法还包括:The RCS public message processing method of claim 1, wherein the RCS public message processing method further comprises:
    向所述客户端发送语言和字符集选择的获取指令;Send an acquisition instruction for language and character set selection to the client;
    若在预设时长内,没有接收到所述客户端基于获取指令的反馈,则获取所述客户端的客户标识;If within the preset time period, the client does not receive feedback based on the acquisition instruction, the client identification of the client is acquired;
    根据所述客户标识与默认语言和默认字符集,对所述客户端的登记语言和登记字符集进行更新。The registered language and registered character set of the client are updated according to the client identification, the default language and the default character set.
  8. 如权利要求1所述的RCS公众消息处理方法,其中,所述根据各个登记语言和登记字符集,将待发送的RCS公众消息分别转换为与各个客户端适配的各个兼容公众消息的步骤包括:The RCS public message processing method according to claim 1, wherein the step of converting the RCS public message to be sent into each compatible public message adapted to each client according to each registered language and registered character set includes :
    根据各个登记语言和登记字符集,将RCS公众消息分别进行格式转换形成各个登记语言和登记字符集的格式;According to each registered language and registered character set, format the RCS public message separately to form the format of each registered language and registered character set;
    根据所述各个登记语言和登记字符集的格式,得到与各个客户端适配的各个兼容公众消息。According to the format of each registered language and registered character set, each compatible public message adapted to each client is obtained.
  9. 一种移动终端,其中,所述移动终端包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的RCS公众消息处理程序,所述RCS公众消息处理程序被所述处理器执行时实现如权利要求1至8中任一项所述的RCS公众消息处理方法的步骤。A mobile terminal, wherein the mobile terminal includes: a memory, a processor, and an RCS public message processing program stored on the memory and operable on the processor, the RCS public message processing program is described by When the processor executes, it implements the steps of the RCS public message processing method according to any one of claims 1 to 8.
  10. 一种计算机可读存储介质,其中,所述计算机可读存储介质上存储有RCS公众消息处理程序,所述RCS公众消息处理程序被处理器执行时实现如权利要求1至8中任一项所述的RCS公众消息处理方法的步骤。A computer-readable storage medium, wherein an RCS public message processing program is stored on the computer-readable storage medium, and when the RCS public message processing program is executed by a processor, it is implemented as claimed in any one of claims 1 to 8. The steps of the RCS public message processing method described above.
PCT/CN2019/114062 2018-10-31 2019-10-29 Rcs public message processing method, mobile terminal, and readable storage medium WO2020088464A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811299392.0A CN111200551B (en) 2018-10-31 2018-10-31 RCS public message processing method, mobile terminal and readable storage medium
CN201811299392.0 2018-10-31

Publications (1)

Publication Number Publication Date
WO2020088464A1 true WO2020088464A1 (en) 2020-05-07

Family

ID=70464709

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/114062 WO2020088464A1 (en) 2018-10-31 2019-10-29 Rcs public message processing method, mobile terminal, and readable storage medium

Country Status (2)

Country Link
CN (1) CN111200551B (en)
WO (1) WO2020088464A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030172121A1 (en) * 2002-03-11 2003-09-11 Evans John P. Method, apparatus and system for providing multimedia messages to incompatible terminals
CN1728689A (en) * 2004-04-20 2006-02-01 Sk泰力康姆株式会社 Multimedia message conversion system and method using support language of terminal
CN101600175A (en) * 2008-06-04 2009-12-09 美国博通公司 Message processing server and method, wireless device and method of operation thereof
CN101610485A (en) * 2009-07-15 2009-12-23 深圳华为通信技术有限公司 The sending method of short message, server and system
CN106095742A (en) * 2016-06-20 2016-11-09 北京金山安全软件有限公司 Text content generation method and server
CN107786415A (en) * 2016-08-24 2018-03-09 中国移动通信有限公司研究院 A kind of method for processing business and relevant device and system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3485898B2 (en) * 2000-11-13 2004-01-13 株式会社スクウェア・エニックス Computer-readable recording medium, message transmission program, message reception program, message transmission / reception program, message transmission method, message reception method, message transmission / reception method, and information processing apparatus
CN201417595Y (en) * 2009-04-10 2010-03-03 河南省科学院应用物理研究所有限公司 General information release manager
US10949230B2 (en) * 2012-05-31 2021-03-16 Microsoft Technology Licensing, Llc Language lists for resource selection based on language text direction

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030172121A1 (en) * 2002-03-11 2003-09-11 Evans John P. Method, apparatus and system for providing multimedia messages to incompatible terminals
CN1728689A (en) * 2004-04-20 2006-02-01 Sk泰力康姆株式会社 Multimedia message conversion system and method using support language of terminal
CN101600175A (en) * 2008-06-04 2009-12-09 美国博通公司 Message processing server and method, wireless device and method of operation thereof
CN101610485A (en) * 2009-07-15 2009-12-23 深圳华为通信技术有限公司 The sending method of short message, server and system
CN106095742A (en) * 2016-06-20 2016-11-09 北京金山安全软件有限公司 Text content generation method and server
CN107786415A (en) * 2016-08-24 2018-03-09 中国移动通信有限公司研究院 A kind of method for processing business and relevant device and system

Also Published As

Publication number Publication date
CN111200551A (en) 2020-05-26
CN111200551B (en) 2022-11-15

Similar Documents

Publication Publication Date Title
US10311877B2 (en) Performing tasks and returning audio and visual answers based on voice command
WO2020186904A1 (en) Text adaptive display method and apparatus, electronic device, server, and storage medium
CN102255887B (en) Method and system for providing online services corresponding to multiple mobile devices
US11283740B2 (en) Name label display method and apparatus
US20130290449A1 (en) Privacy-based social content broadcast systems and methods
US10659411B2 (en) Notification forwarding
WO2020177698A1 (en) Inter-mini program platform communication method and device, and computer storage medium
JP2008532119A5 (en)
WO2019114831A1 (en) Method for connecting to wireless access point
EP3131303B1 (en) Method and device for transmitting data in intelligent terminal to television terminal
WO2020177697A1 (en) Method for discovery between mini program platforms, device, and computer storage medium
CN109800557B (en) Block chain-based integrated processing method, device, server, equipment and medium
WO2023005197A1 (en) Content display method and terminal
US20220171011A1 (en) Positioning method and device, server, storage medium and terminal
US10348890B2 (en) Information pushing method and apparatus, and terminal and server
WO2017140226A1 (en) Video processing method and device therefor
US7086051B2 (en) Method and apparatus for just-in-time provisioning application-related information at a communication device
WO2020088464A1 (en) Rcs public message processing method, mobile terminal, and readable storage medium
TWI457787B (en) Method and computer-readable memories for content management that addresses levels of functionality
US9998704B2 (en) Video communication method and system, and terminal
US20210334071A1 (en) Dialogue processing method and device
JP2005284880A (en) Voice recognition service system
WO2020173345A1 (en) Method for service decision distribution among multiple terminal devices and system
KR102260471B1 (en) Method and system for call connection between service provider and user
US11810573B2 (en) Assisted speech recognition

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19878182

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19878182

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 09/09/2021)

122 Ep: pct application non-entry in european phase

Ref document number: 19878182

Country of ref document: EP

Kind code of ref document: A1