mirror of
				https://github.com/f4exb/sdrangel.git
				synced 2025-11-03 13:11:20 -05:00 
			
		
		
		
	PacketMod: Fix UTF-8 encoding.
This commit is contained in:
		
							parent
							
								
									de4bc18337
								
							
						
					
					
						commit
						d1bfdbaa63
					
				@ -592,8 +592,9 @@ void PacketModSource::addTXPacket(QString callsign, QString to, QString via, QSt
 | 
			
		||||
    // PID
 | 
			
		||||
    *p++ = m_settings.m_ax25PID;
 | 
			
		||||
    // Data
 | 
			
		||||
    len = data.length();
 | 
			
		||||
    memcpy(p, data.toUtf8(), len);
 | 
			
		||||
    QByteArray dataBytes = data.toUtf8();
 | 
			
		||||
    len = dataBytes.length();
 | 
			
		||||
    memcpy(p, dataBytes, len);
 | 
			
		||||
    p += len;
 | 
			
		||||
    // CRC (do not include flags)
 | 
			
		||||
    crc.calculate(crc_start, p-crc_start);
 | 
			
		||||
 | 
			
		||||
@ -74,7 +74,7 @@ Enter the routing for the packet. To have the packet repeated by digipeaters, us
 | 
			
		||||
 | 
			
		||||
<h3>16: Data</h3>
 | 
			
		||||
 | 
			
		||||
The packet of data to send. To send an APRS status message, use the format <tt>>Status</tt>. The APRS specification can be found at: http://www.aprs.org/doc/APRS101.PDF. APRS messages can be tracked on https://aprs.fi
 | 
			
		||||
The packet of data to send. This is encoded using UTF-8. To send an APRS status message, use the format <tt>>Status</tt>. The APRS specification can be found at: http://www.aprs.org/doc/APRS101.PDF. APRS messages can be tracked on https://aprs.fi
 | 
			
		||||
 | 
			
		||||
<h3>17: TX</h3>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user